Function at 0x406639
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x427c73
call fcn.0041b8d0
sub esp, 0x830
mov eax, dword [ebp + 0xc]
neg eax
push ebx
sbb eax, eax
push esi
and eax, 0x2006
push edi
add eax, 0x1028
push eax
lea ecx, [ebp - 0x50]
call fcn.004133d0
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x3e
pop ecx
xor eax, eax
mov byte [ebp - 0x254], bl
lea edi, [ebp - 0x253]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov byte [ebp - 0x83c], bl
mov ecx, 0x138
lea edi, [ebp - 0x83b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x41
pop ecx
xor eax, eax
mov byte [ebp - 0x158], bl
lea edi, [ebp - 0x157]
rep stosd dword es:[edi], eax
push 0x3003
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x10], ebx
call fcn.004133d0
mov esi, eax
mov byte [ebp - 4], 1
push 0x300f
lea ecx, [ebp - 0x40]
call fcn.004133d0
mov edi, eax
mov byte [ebp - 4], 2
push 0x3004
lea ecx, [ebp - 0x20]
call fcn.004133d0
mov byte [ebp - 4], 3
mov ecx, dword [esi + 4]
cmp ecx, ebx
mov esi, 0x401650
jne 0x4066f2
mov ecx, esi
mov edi, dword [edi + 4]
cmp edi, ebx
jne 0x4066fb
mov edi, esi
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x406704
mov eax, esi
push ecx
push 0xfb
lea ecx, [ebp - 0x254]
push ecx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.0041341e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.0041341e
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x30]
call fcn.0041341e
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x158]
sub eax, edi
mov cl, byte [edi]
mov byte [eax + edi], cl
inc edi
cmp cl, bl
jne 0x406748
mov eax, dword [ebp - 0x4c]
cmp eax, ebx
jne 0x40675b
mov eax, esi
push eax
lea eax, [ebp - 0x158]
push eax
call fcn.00413a76
lea eax, [ebp - 0x158]
push ebx
push eax
call fcn.0041c2eb
test eax, eax
pop ecx
pop ecx
jne 0x40690c
cmp dword [ebp + 0xc], ebx
je 0x406880
lea eax, [ebp - 0x158]
push eax
push 0x4e3
lea eax, [ebp - 0x83c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
lea eax, [ebp - 0x83c]
mov dword [ebp + 0xc], eax
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x254]
push edi
push eax
call fcn.0041bbc4
test eax, eax
pop ecx
pop ecx
je 0x4067e2
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push dword [ebp + 0xc]
call fcn.0041bda3
inc eax
cmp byte [eax], bl
pop ecx
pop ecx
mov dword [ebp + 0xc], eax
jne 0x4067aa
jmp 0x406909
push dword [ebp + 8]
call fcn.0040654a
test eax, eax
je 0x406909
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x358], bl
lea edi, [ebp - 0x357]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x358]
push eax
push dword [ebp + 8]
call fcn.00406277
test eax, eax
jne 0x406902
cmp dword [ebp + 0x10], ebx
je 0x406909
push ebx
lea ecx, [ebp - 0x20]
call fcn.004133d0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x358]
push eax
push 0x42e228
push 0x42e128
lea eax, [ebp - 0x20]
push 0x1075
push eax
call fcn.00413429
add esp, 0x14
cmp dword [ebp - 0x1c], ebx
je 0x40685f
mov esi, dword [ebp - 0x1c]
push 0x104
push esi
push dword [ebp + 0x10]
call fcn.0041bb31
add esp, 0xc
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x20]
call fcn.0041341e
jmp 0x406909
push 0x301b
lea ecx, [ebp - 0x40]
call fcn.004133d0
mov edi, eax
mov byte [ebp - 4], 5
push 0x301a
lea ecx, [ebp - 0x30]
call fcn.004133d0
mov byte [ebp - 4], 6
mov ecx, dword [edi + 4]
cmp ecx, ebx
jne 0x4068ad
mov ecx, esi
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x4068b6
mov eax, esi
lea edx, [ebp - 0x158]
push edx
push 0x4e3
lea edx, [ebp - 0x83c]
push edx
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x30]
call fcn.0041341e
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x40]
call fcn.0041341e
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.0041bc58
test eax, eax
pop ecx
pop ecx
jne 0x406909
mov dword [ebp - 0x10], 1
mov ebx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.0041341e
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc