Function at 0x403030
Capabilities:
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x42804b
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x432b60]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x432b60]
xor eax, esp
push eax
lea eax, [esp + 0x274]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x284]
mov edi, ecx
mov ebx, dword [edi + 8]
cmp dword [edi + 4], ebx
mov dword [esp + 0x14], edi
jbe 0x403085
call fcn.0041414e
mov esi, dword [edi + 4]
cmp esi, dword [edi + 8]
jbe 0x403092
call fcn.0041414e
push ebx
push edi
push esi
push edi
lea eax, [esp + 0x28]
push eax
call fcn.00404720
mov eax, dword [ebp + 0x14]
xor ebx, ebx
cmp eax, ebx
ja 0x4030b0
xor eax, eax
jmp 0x403295
cmp dword [ebp + 0x18], 0x10
jb 0x4030bb
mov eax, dword [ebp + 4]
jmp 0x4030be
lea eax, [ebp + 4]
push eax
push ebx
push str.value
push str.count
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x18], esi
jle 0x4030a9
mov eax, 0xf
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
mov dword [esp + 0x27c], ebx
xor eax, eax
push 0x1ff
lea ecx, [esp + 0x71]
push ebx
push ecx
mov byte [esp + 0x68], 0
mov dword [esp + 0x69], eax
mov dword [esp + 0x6d], eax
mov dword [esp + 0x71], eax
mov word [esp + 0x75], ax
mov byte [esp + 0x77], al
mov byte [esp + 0x78], al
call fcn.004155a0
mov edi, 1
add esp, 0xc
cmp esi, edi
jl 0x40322c
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edi
lea edx, [esp + 0x60]
push 0x42c640
push edx
mov eax, 0x10
call fcn.00404f60
add esp, 0xc
mov ecx, ebp
call fcn.00405ca0
push eax
push 0x200
lea eax, [esp + 0x74]
push eax
push 0x42c643
push str.file
lea ecx, [esp + 0x70]
push ecx
call ebx
lea eax, [esp + 0x6c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403186
sub eax, edx
push eax
lea edx, [esp + 0x70]
push edx
lea ecx, [esp + 0x28]
call fcn.00406890
cmp dword [esp + 0x34], 0
je 0x40321f
mov ecx, ebp
call fcn.00405ca0
push eax
push 0
push str.version
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
mov dword [esp + 0x3c], eax
je 0x40321f
mov ecx, ebp
call fcn.00405ca0
push eax
push 0x200
lea ecx, [esp + 0x74]
push ecx
push 0x42c643
push str.path
lea edx, [esp + 0x70]
push edx
call ebx
lea eax, [esp + 0x6c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4031f3
sub eax, edx
push eax
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x48]
call fcn.00406890
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
call fcn.004044c0
mov esi, dword [esp + 0x18]
add edi, 1
cmp edi, esi
jle 0x403144
xor ebx, ebx
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 4]
cmp eax, ebx
jne 0x40323b
xor esi, esi
jmp 0x403253
mov ecx, dword [ecx + 8]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
mov edi, 0x10
cmp dword [esp + 0x58], edi
jb 0x40326b
mov edx, dword [esp + 0x44]
push edx
call fcn.00407b33
add esp, 4
cmp dword [esp + 0x38], edi
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
jb 0x403293
mov eax, dword [esp + 0x24]
push eax
call fcn.00407b33
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x274]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.00414015
add esp, 0x26c
ret 4