Function at 0x40f290
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x450891
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
mov eax, dword [0x46aa78]
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x13c], eax
mov dword [esi + 0x94], 4
call fcn.004472e0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
push 0x2f
mov dword [esp + 0x150], 0
call fcn.004069d0
mov edi, eax
add esp, 4
test edi, edi
je 0x40f303
push edi
call fcn.0043124b
add esp, 4
push eax
push edi
lea ecx, [esp + 0x14]
call fcn.00402510
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push 0
push eax
push 0x5400
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
mov byte [esp + 0x30], 0
mov ecx, 0x40
lea edi, [esp + 0x31]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp dword [esi + 0x38], 0x10
jb 0x40f344
mov eax, dword [esi + 0x24]
jmp 0x40f347
lea eax, [esi + 0x24]
push eax
push 0x104
lea edx, [esp + 0x38]
push edx
push 0x45675a
push str.LoginServer
push 0x4569a4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x30]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f370
sub eax, edx
push eax
lea eax, [esp + 0x34]
lea ebx, [esi + 0x130]
push eax
mov ecx, ebx
call fcn.004023a0
push str.loginserver.txt
lea ecx, [esp + 0x18]
push esi
push ecx
call fcn.00407ac0
add esp, 0xc
push 0xffffffffffffffff
push 0
lea edi, [esi + 0x14c]
push eax
mov ecx, edi
mov byte [esp + 0x158], 1
call fcn.00402270
mov ecx, dword [esp + 0x2c]
mov eax, 0x10
cmp ecx, eax
mov byte [esp + 0x14c], 0
jb 0x40f3e0
mov edx, dword [esp + 0x18]
push edx
call fcn.00446915
add esp, 4
mov eax, 0x10
cmp dword [edi + 0x18], eax
jb 0x40f3ea
mov edi, dword [edi + 4]
jmp 0x40f3ed
add edi, 4
cmp dword [ebx + 0x18], eax
jb 0x40f3f7
mov ebx, dword [ebx + 4]
jmp 0x40f3fa
add ebx, 4
push 0
push 1
push 1
push 1
push edi
push ebx
mov ecx, esi
call fcn.0040cfb0
test al, al
jne 0x40f4ba
call fcn.004472e0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
push 0x30
mov byte [esp + 0x150], 2
call fcn.004069d0
mov edi, eax
add esp, 4
test edi, edi
je 0x40f447
push edi
call fcn.0043124b
add esp, 4
push eax
push edi
lea ecx, [esp + 0x18]
call fcn.00402510
mov edi, dword [esp + 0x10]
mov eax, dword [esi + 0x1c]
push 0
push edi
push 0x5405
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [edi - 0x10]
mov byte [esp + 0x14c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f48a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x14c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f4b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor al, al
jmp 0x40f53e
push 0x31
call fcn.004069d0
mov edi, eax
add esp, 4
test edi, edi
je 0x40f4d3
push edi
call fcn.0043124b
add esp, 4
push eax
push edi
lea ecx, [esp + 0x14]
call fcn.00402510
mov ebx, dword [esp + 0xc]
mov eax, dword [esi + 0x1c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x5400
push eax
call edi
mov ecx, dword [esi + 0x1c]
push 0
push 0x453e50
push 0x5402
push ecx
call edi
mov edx, dword [esi + 0x1c]
push 0
push 0
push 0x5408
push edx
call edi
lea eax, [ebx - 0x10]
mov dword [esp + 0x14c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f53c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, 1
mov ecx, dword [esp + 0x144]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x13c]
call fcn.00430cd9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret