Function at 0x402652
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4d7cf0
call fcn.0046d048
sub esp, 0x60
push ebx
push esi
push edi
xor edi, edi
push edi
mov esi, ecx
push edi
push 0x1009
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [esi + 0x48], edi
jbe 0x4026ae
mov eax, dword [esi + 0x40]
mov ecx, dword [eax]
cmp ecx, eax
mov dword [ebp - 0x14], ecx
je 0x4026ae
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
cmp eax, edi
je 0x40269e
push eax
call fcn.004ce4b9
mov eax, dword [ebp - 0x14]
pop ecx
mov dword [eax + 0x10], edi
lea ecx, [ebp - 0x14]
call fcn.004034c6
mov eax, dword [esi + 0x40]
cmp dword [ebp - 0x14], eax
jne 0x402687
lea ecx, [esi + 0x3c]
call fcn.00403478
push dword [esi + 0x54]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push edi
push 0x5137c0
push 0x5137b8
call ebx
cmp eax, edi
mov dword [ebp - 0x24], eax
je 0x4028d4
mov ecx, dword [0x518cb0]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], edi
jle 0x40288f
jmp 0x4026f0
xor edi, edi
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push 0x5137b4
push eax
call fcn.004c7e63
add esp, 0xc
push dword [esi + 0x54]
push edi
push 0x5137b0
push dword [ebp - 0x10]
call ebx
push dword [esi + 0x54]
mov dword [ebp - 0x1c], eax
push edi
push 0x5137a4
push dword [ebp - 0x10]
call ebx
push dword [esi + 0x54]
mov dword [ebp - 0x20], eax
push edi
push 0x5137a0
push dword [ebp - 0x10]
call ebx
cmp dword [ebp - 0x1c], 0x801c
mov dword [ebp - 0x2c], eax
jne 0x402752
cmp dword [ebp - 0x20], 3
jne 0x402752
cmp eax, 0x38
jne 0x402752
mov dword [ebp - 0x20], 0xb
mov eax, dword [0x518cb0]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x28]
mov ecx, esi
mov byte [ebp - 4], 1
push eax
call fcn.00402fa0
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004ce065
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004cdf2c
push 6
call fcn.004ce490
pop ecx
mov edi, eax
mov cl, byte [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov byte [edi], cl
mov cx, word [ebp - 0x2c]
test edi, edi
mov word [edi + 4], ax
mov word [edi + 2], cx
je 0x4028bc
cmp eax, 0x8050
je 0x402874
push 0x28
lea eax, [ebp - 0x6c]
push 0
push eax
call fcn.0046d250
add esp, 0xc
push 0
push 0
push 0x1004
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x6c]
push eax
push 0
push 0x1007
mov dword [ebp - 0x6c], 5
push dword [esi + 0x1c]
mov dword [ebp - 0x4c], edi
call dword [sym.imp.USER32.dll_SendMessageA]
movzx ax, byte [edi]
push eax
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
call fcn.00402b2d
push dword [eax]
mov ecx, esi
mov byte [ebp - 4], 3
push 1
push dword [ebp - 0x68]
call fcn.004c8aee
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.004cdf2c
mov ax, word [edi + 2]
mov ecx, esi
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00401a74
push dword [eax]
mov ecx, esi
mov byte [ebp - 4], 4
push 2
push dword [ebp - 0x68]
call fcn.004c8aee
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.004cdf2c
mov eax, dword [ebp - 0x14]
lea ecx, [esi + 0x3c]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x38], edi
call fcn.0040330d
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004cdf2c
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x24]
jl 0x4026ee
mov eax, dword [ebp - 0x24]
cmp eax, dword [esi + 0x5c]
je 0x40289e
mov ecx, esi
call fcn.00402dc8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004cdf2c
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004cdf2c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004cdf2c
xor eax, eax
jmp 0x4028ad