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

Disassembly:
push 0xffffffffffffffff
push 0x42549b
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x42eb24]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42eb24]
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 0x401e25
call fcn.004115fc
mov esi, dword [edi + 4]
cmp esi, dword [edi + 8]
jbe 0x401e32
call fcn.004115fc
push ebx
push edi
push esi
push edi
lea eax, [esp + 0x28]
push eax
call fcn.004031e0
mov eax, dword [ebp + 0x14]
xor ebx, ebx
cmp eax, ebx
ja 0x401e50
xor eax, eax
jmp 0x402035
cmp dword [ebp + 0x18], 0x10
jb 0x401e5b
mov eax, dword [ebp + 4]
jmp 0x401e5e
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 0x401e49
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.00412ee0
mov edi, 1
add esp, 0xc
cmp esi, edi
jl 0x401fcc
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edi
lea edx, [esp + 0x60]
push 0x429534
push edx
mov eax, 0x10
call fcn.004039e0
add esp, 0xc
mov ecx, ebp
call fcn.00404250
push eax
push 0x200
lea eax, [esp + 0x74]
push eax
push 0x429537
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 0x401f26
sub eax, edx
push eax
lea edx, [esp + 0x70]
push edx
lea ecx, [esp + 0x28]
call fcn.00404cf0
cmp dword [esp + 0x34], 0
je 0x401fbf
mov ecx, ebp
call fcn.00404250
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 0x401fbf
mov ecx, ebp
call fcn.00404250
push eax
push 0x200
lea ecx, [esp + 0x74]
push ecx
push 0x429537
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 0x401f93
sub eax, edx
push eax
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x48]
call fcn.00404cf0
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
call fcn.00402fd0
mov esi, dword [esp + 0x18]
add edi, 1
cmp edi, esi
jle 0x401ee4
xor ebx, ebx
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 4]
cmp eax, ebx
jne 0x401fdb
xor esi, esi
jmp 0x401ff3
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 0x40200b
mov edx, dword [esp + 0x44]
push edx
call fcn.004059f3
add esp, 4
cmp dword [esp + 0x38], edi
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
jb 0x402033
mov eax, dword [esp + 0x24]
push eax
call fcn.004059f3
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.0041125b
add esp, 0x26c
ret 4