Function at 0x40a9e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4252a4
mov eax, dword fs:[0]
push eax
mov eax, 0x102a8
call fcn.00421620
mov eax, dword [0x434304]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, ecx
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov ebx, edx
mov dword [ebp - 0x10280], edi
mov dword [ebp - 0x10274], ebx
cmp eax, ecx
je 0x40aa57
mov edx, dword [ebp - 0x10278]
push edx
push ecx
call fcn.0040c7d0
mov edi, dword [edi + 4]
add esp, 8
mov ebx, eax
call fcn.0040b980
mov eax, dword [ebp - 0x10280]
mov dword [eax + 4], ebx
mov ebx, dword [ebp - 0x10274]
xor edi, edi
push 0x2c
mov dword [ebp - 0x10288], edi
call fcn.00416e13
add esp, 4
cmp eax, edi
je 0x40aed0
mov dword [ebp - 0x1028c], eax
mov dword [eax], eax
mov eax, dword [ebp - 0x1028c]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x1028c]
mov dword [eax + 8], eax
mov ecx, dword [ebp - 0x1028c]
mov byte [ecx + 0x28], 1
mov edx, dword [ebp - 0x1028c]
mov byte [edx + 0x29], 1
push 0xfffc
lea ecx, [ebp - 0x1021a]
xor eax, eax
push edi
mov dword [ebp - 4], edi
push ecx
mov word [ebp - 0x1021c], ax
call fcn.0041d650
push 0x206
lea eax, [ebp - 0x21a]
xor edx, edx
push edi
push eax
mov word [ebp - 0x21c], dx
call fcn.0041d650
mov eax, 8
add esp, 0x18
lea ecx, [ebp - 0x1021c]
mov dword [ebp - 0x1027c], ecx
cmp dword [esi + 0x14], eax
jb 0x40aaf3
mov esi, dword [esi]
cmp dword [ebx + 0x14], eax
jb 0x40aafc
mov eax, dword [ebx]
jmp 0x40aafe
mov eax, ebx
push esi
push 0x7fff
lea edx, [ebp - 0x1021c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov ecx, eax
xor eax, eax
xor esi, esi
mov dword [ebp - 0x10298], ecx
mov dword [ebp - 0x10274], eax
cmp ecx, edi
jbe 0x40ae2f
lea esp, [esp]
mov ecx, dword [ebp - 0x1027c]
mov dx, word [ebp + eax*2 - 0x1021c]
mov word [ebp + esi*2 - 0x21c], dx
cmp word [ecx], di
jne 0x40ae14
xor eax, eax
mov word [ebp - 0x10270], ax
mov ebx, 7
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x1025c], ebx
mov dword [ebp - 0x10260], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40ab72
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
lea esi, [ebp - 0x10270]
call fcn.0040b550
xor ecx, ecx
mov dword [ebp - 0x10224], ebx
mov dword [ebp - 0x10228], edi
mov word [ebp - 0x10238], cx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1025c]
mov ecx, dword [ebp - 0x10270]
mov edi, ecx
cmp eax, 8
jae 0x40ad21
mov edi, esi
mov ebx, esi
mov edx, dword [ebp - 0x10260]
lea ebx, [ebx + edx*2]
mov esi, ecx
cmp eax, 8
jae 0x40abdd
lea esi, [ebp - 0x10270]
cmp esi, ebx
je 0x40ac06
sub edi, esi
movzx eax, word [esi]
push eax
call fcn.00416d92
mov word [edi + esi], ax
add esi, 2
add esp, 4
cmp esi, ebx
jne 0x40abe3
mov eax, dword [ebp - 0x1025c]
mov ecx, dword [ebp - 0x10270]
cmp eax, 8
mov eax, ecx
jae 0x40ac13
lea eax, [ebp - 0x10270]
push eax
mov eax, 0x42c634
call fcn.0040af70
mov ecx, eax
add esp, 4
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x40ac26
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x10238]
call fcn.0040b550
cmp dword [ebp - 0x10224], 8
mov eax, dword [ebp - 0x10238]
jae 0x40ac52
mov eax, esi
push eax
mov eax, 0x42c638
call fcn.0040af70
mov ecx, eax
add esp, 4
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x40ac65
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x10238]
call fcn.0040b550
xor ecx, ecx
xor ebx, ebx
push 1
mov eax, 0x42b910
lea esi, [ebp - 0x10254]
mov dword [ebp - 0x10240], 7
mov dword [ebp - 0x10244], ebx
mov word [ebp - 0x10254], cx
call fcn.0040b550
push ebx
lea edx, [ebp - 0x10238]
push edx
or eax, 0xffffffff
mov byte [ebp - 4], 3
call fcn.0040b330
push 1
mov eax, 0x42b910
mov ecx, esi
call fcn.0040b420
mov esi, dword [ebp - 0x1028c]
lea eax, [ebp - 0x10254]
push eax
lea eax, [ebp - 0x10290]
call fcn.0040ba80
mov dword [ebp - 0x10294], eax
cmp eax, dword [ebp - 0x1028c]
je 0x40ad28
mov edi, dword [eax + 0x1c]
add eax, 0xc
cmp dword [eax + 0x14], 8
jb 0x40ad03
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x10244]
lea ecx, [ebp - 0x10254]
call fcn.0040b230
test eax, eax
js 0x40ad28
lea eax, [ebp - 0x10294]
jmp 0x40ad3a
mov ebx, ecx
jmp 0x40abc7
mov ecx, dword [ebp - 0x1028c]
mov dword [ebp - 0x1029c], ecx
lea eax, [ebp - 0x1029c]
cmp dword [eax], esi
jne 0x40ad4f
mov edi, dword [ebp - 0x10280]
lea ecx, [ebp - 0x10254]
call fcn.0040b060
lea edx, [ebp - 0x10254]
push edx
lea ecx, [ebp - 0x10290]
call fcn.0040c6f0
push eax
lea eax, [ebp - 0x102b0]
push eax
lea ecx, [ebp - 0x10290]
push ecx
call fcn.0040c190
push 0x104
lea edx, [ebp - 0x21c]
push ebx
push edx
or esi, 0xffffffff
call fcn.0041d650
mov edi, 8
add esp, 0xc
cmp dword [ebp - 0x10240], edi
jb 0x40ada9
mov eax, dword [ebp - 0x10254]
push eax
call fcn.00416027
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x10240], 7
mov dword [ebp - 0x10244], ebx
mov word [ebp - 0x10254], cx
cmp dword [ebp - 0x10224], edi
jb 0x40add9
mov edx, dword [ebp - 0x10238]
push edx
call fcn.00416027
add esp, 4
xor eax, eax
mov byte [ebp - 4], al
mov dword [ebp - 0x10224], 7
mov dword [ebp - 0x10228], ebx
mov word [ebp - 0x10238], ax
cmp dword [ebp - 0x1025c], edi
jb 0x40ae0c
mov ecx, dword [ebp - 0x10270]
push ecx
call fcn.00416027
add esp, 4
mov eax, dword [ebp - 0x10274]
xor edi, edi
add dword [ebp - 0x1027c], 2
inc eax
inc esi
mov dword [ebp - 0x10274], eax
cmp eax, dword [ebp - 0x10298]
jb 0x40ab30
xor eax, eax
mov word [ebp - 0x10238], ax
push 0x19
mov eax, 0x42c640
lea esi, [ebp - 0x10238]
mov dword [ebp - 0x10224], 7
mov dword [ebp - 0x10228], edi
call fcn.0040b550
mov edi, dword [ebp - 0x10280]
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.0040b060
cmp dword [ebp - 0x10224], 8
jb 0x40ae83
mov ecx, dword [ebp - 0x10238]
push ecx
call fcn.00416027
add esp, 4
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x1028c]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp - 0x10278]
lea esi, [ebp - 0x10290]
call fcn.0040b9c0
mov edx, dword [ebp - 0x1028c]
push edx
call fcn.00416027
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041558a
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10278]
push eax
lea ecx, [ebp - 0x102a8]
mov dword [ebp - 0x10278], edi
call fcn.00416633
push 0x4317a4
lea ecx, [ebp - 0x102a8]
push ecx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.0041759d
int3