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

Disassembly:
push 0xffffffffffffffff
push 0x40a5b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x438
push ebp
mov ebp, ecx
lea eax, [esp + 0x16]
push esi
push eax
lea ecx, [esp + 0xb8]
mov dword [esp + 0x10], ebp
call fcn.00402e70
lea ecx, [esp + 0x1b]
xor esi, esi
push ecx
lea ecx, [esp + 0xc8]
mov dword [esp + 0x44c], esi
call fcn.00402e70
lea edx, [esp + 0xb]
lea ecx, [esp + 0xd4]
push edx
mov byte [esp + 0x44c], 1
call fcn.00402e70
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x448], 2
cmp eax, esi
mov dword [esp + 0x1c], esi
jne 0x4022d2
mov eax, 0x40b1a0
push eax
push esi
push str.Count
push str.Total
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], esi
jle 0x402a9d
push ebx
push edi
mov ebx, 5
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x30]
mov byte [esp + 0x30], al
call fcn.00403330
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x40], cl
lea ecx, [esp + 0x40]
mov byte [esp + 0x454], 3
call fcn.00403330
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x80]
mov byte [esp + 0x454], 4
mov byte [esp + 0x80], dl
call fcn.00403330
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push 0xa
push eax
push ecx
mov byte [esp + 0x45c], bl
call fcn.00409f5a
mov dl, byte [esp + 0x1f]
add esp, 0xc
lea ecx, [esp + 0xac]
mov byte [esp + 0xac], dl
push 0
call fcn.00403330
mov edi, str.file
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.file
lea ecx, [esp + 0xb4]
call fcn.00403380
lea eax, [esp + 0x1c]
lea ecx, [esp + 0xac]
push eax
lea edx, [esp + 0x110]
push ecx
push edx
mov byte [esp + 0x45c], 6
call fcn.00403b00
add esp, 0xc
mov ecx, dword [0x40b198]
mov byte [esp + 0x450], 7
push ecx
push 0
push eax
lea ecx, [esp + 0x38]
call fcn.004030a0
push 1
lea ecx, [esp + 0x110]
mov byte [esp + 0x454], 6
call fcn.00403330
push 1
lea ecx, [esp + 0xb0]
mov byte [esp + 0x454], bl
call fcn.00403330
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x90]
mov byte [esp + 0x90], dl
call fcn.00403330
mov edi, str.fileURL
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.fileURL
lea ecx, [esp + 0x94]
call fcn.00403380
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x8c]
push eax
lea edx, [esp + 0x100]
push ecx
push edx
mov byte [esp + 0x45c], 8
call fcn.00403b00
add esp, 0xc
mov ecx, dword [0x40b198]
mov byte [esp + 0x450], 9
push ecx
push 0
push eax
lea ecx, [esp + 0x48]
call fcn.004030a0
push 1
lea ecx, [esp + 0x100]
mov byte [esp + 0x454], 8
call fcn.00403330
push 1
lea ecx, [esp + 0x90]
mov byte [esp + 0x454], bl
call fcn.00403330
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0xa0]
mov byte [esp + 0xa0], dl
call fcn.00403330
mov edi, str.fileflag
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.fileflag
lea ecx, [esp + 0xa4]
call fcn.00403380
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x9c]
push eax
lea edx, [esp + 0x130]
push ecx
push edx
mov byte [esp + 0x45c], 0xa
call fcn.00403b00
add esp, 0xc
mov ecx, dword [0x40b198]
mov byte [esp + 0x450], 0xb
push ecx
push 0
push eax
lea ecx, [esp + 0x88]
call fcn.004030a0
push 1
lea ecx, [esp + 0x130]
mov byte [esp + 0x454], 0xa
call fcn.00403330
push 1
lea ecx, [esp + 0xa0]
mov byte [esp + 0x454], bl
call fcn.00403330
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x402563
mov eax, 0x40b1a0
mov ecx, dword [esp + 0x30]
test ecx, ecx
jne 0x402570
mov ecx, 0x40b1a0
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
lea edx, [esp + 0x140]
push 0x104
push edx
push str.tmp.tmp
push ecx
push str.FILE
call esi
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x40259d
mov eax, 0x40b1a0
mov ecx, dword [esp + 0x40]
test ecx, ecx
jne 0x4025aa
mov ecx, 0x40b1a0
push eax
lea eax, [esp + 0x348]
push 0x104
push eax
push str.tmpURL.tmp
push ecx
push str.FILE
call esi
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x4025d1
mov eax, 0x40b1a0
mov ecx, dword [esp + 0x80]
test ecx, ecx
jne 0x4025e1
mov ecx, 0x40b1a0
push eax
lea edx, [esp + 0xf0]
push 0x10
push edx
push ecx
push str.FILE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
lea eax, [esp + 0x240]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x13c]
push str.64BIT
push ecx
call fcn.00404a60
lea edx, [esp + 0x144]
add esp, 8
cmp eax, edx
jne 0x40271e
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x70]
mov byte [esp + 0x70], al
call fcn.00403330
lea edi, [esp + 0x13c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x140]
push ecx
lea ecx, [esp + 0x74]
call fcn.00403380
lea edx, [esp + 0x240]
push 0x5c
push edx
mov byte [esp + 0x458], 0xc
call fcn.00404400
mov edx, eax
mov edi, str.64_
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x11c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x74]
add ecx, 0xfffffffb
push ecx
push ebx
push edx
lea ecx, [esp + 0x78]
call fcn.00402ed0
mov eax, dword [eax + 4]
test eax, eax
jne 0x4026cb
mov eax, 0x40b1a0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x240]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x120]
call fcn.00403330
push 1
lea ecx, [esp + 0x70]
mov byte [esp + 0x454], bl
call fcn.00403330
jmp 0x40287f
lea eax, [esp + 0x13c]
push str..ime
push eax
call fcn.00404a60
add esp, 8
test eax, eax
je 0x402816
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x50], cl
lea ecx, [esp + 0x50]
call fcn.00403330
lea edi, [esp + 0x13c]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x50]
push ebp
call fcn.00403440
test al, al
je 0x402796
mov edi, dword [esp + 0x50]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x13c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x50]
call fcn.00403420
lea eax, [esp + 0x240]
push 0x5c
push eax
call fcn.00404400
mov edx, eax
mov edi, str.32_
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x50]
test edi, edi
jne 0x4027d9
mov edi, 0x40b1a0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x240]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x50]
call fcn.00403330
mov ebp, dword [esp + 0x14]
jmp 0x40287f
lea eax, [esp + 0x240]
push 0x5c
push eax
call fcn.00404400
mov edx, eax
mov edi, 0x40d134
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x240]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x13c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [esp + 0xf8], 2
je 0x402a04
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x60]
mov byte [esp + 0x60], al
call fcn.00403330
lea edi, [esp + 0x240]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x60]
push ebp
call fcn.00403440
test al, al
je 0x4028e8
mov edi, dword [esp + 0x60]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x240]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x60]
call fcn.00403420
lea eax, [esp + 0xec]
lea ecx, [esp + 0x5c]
push eax
push ecx
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x458], 0xd
call fcn.00402df0
push 1
lea ecx, [esp + 0x60]
mov esi, eax
mov byte [esp + 0x454], bl
call fcn.00403330
test esi, esi
je 0x402a00
lea edi, [esp + 0x13c]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0xc0]
push ebp
call fcn.00403440
test al, al
je 0x402973
mov edi, dword [esp + 0xc0]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x13c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc0]
call fcn.00403420
lea edi, [esp + 0x344]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0xd0]
push ebp
call fcn.00403440
test al, al
je 0x4029c4
mov edi, dword [esp + 0xd0]
mov ecx, ebp
mov eax, ecx
lea esi, [esp + 0x344]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xd0]
call fcn.00403420
mov ecx, dword [0x40b198]
lea edx, [esp + 0x7c]
push ecx
push 0
push edx
lea ecx, [esp + 0xe8]
call fcn.004030a0
mov eax, dword [esp + 0x14]
lea edx, [esp + 0xbc]
push edx
push 1
lea ecx, [eax + 0x34]
mov eax, dword [eax + 0x3c]
push eax
call fcn.00403560
mov dword [esp + 0x24], 1
mov ebp, dword [esp + 0x14]
push 1
lea ecx, [esp + 0x80]
mov byte [esp + 0x454], 4
call fcn.00403330
mov eax, dword [esp + 0x40]
xor esi, esi
cmp eax, esi
je 0x402a41
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x402a38
cmp al, 0xff
je 0x402a38
dec al
mov byte [ecx], al
jmp 0x402a41
push ecx
call fcn.00404090
add esp, 4
mov eax, dword [esp + 0x30]
mov dword [esp + 0x40], esi
cmp eax, esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov byte [esp + 0x450], 2
je 0x402a7a
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x402a71
cmp al, 0xff
je 0x402a71
dec al
mov byte [ecx], al
jmp 0x402a7a
push ecx
call fcn.00404090
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
inc eax
mov dword [esp + 0x30], esi
cmp eax, ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x18], eax
jl 0x4022fb
pop edi
pop ebx
push 1
lea ecx, [esp + 0xd8]
mov dword [esp + 0x44c], 0xf
call fcn.00403330
push 1
lea ecx, [esp + 0xc8]
mov byte [esp + 0x44c], 0xe
call fcn.00403330
push 1
lea ecx, [esp + 0xb8]
mov dword [esp + 0x44c], 0xffffffff
call fcn.00403330
mov ecx, dword [esp + 0x440]
mov eax, dword [esp + 0x1c]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x444
ret