Function at 0x4099b0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x4af6f0]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
push esi
push edi
push 0x902
mov esi, ecx
push 0
push esi
mov dword [ebp - 0x7c], esi
call fcn.0046f7e0
add esp, 0xc
cmp dword [ebp + 0x19c], 0
je 0x409c9a
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x409a74
push 0x104
lea ecx, [ebp - 0x78]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jbe 0x409a74
lea edx, [ebp - 0x78]
push 0x2e
push edx
call fcn.00472d3b
add esp, 8
test eax, eax
je 0x409a4a
mov ecx, eax
lea edx, [ebp - 0x78]
sub ecx, edx
sar ecx, 1
mov edx, 0x103
push 0x4a68cc
sub edx, ecx
push edx
add eax, 2
push eax
call fcn.0046fe12
add esp, 0xc
test eax, eax
je 0x409a64
jmp 0x409a7e
push str..ini
lea eax, [ebp - 0x78]
push 0x104
push eax
call fcn.0046e904
add esp, 0xc
test eax, eax
jne 0x409a7e
lea ecx, [ebp - 0x78]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x409a84
jmp 0x409a7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x409a84
xor edx, edx
mov word [ebp - 0x78], dx
lea eax, [ebp - 0x78]
push eax
push 0x50
push str.Port
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea ecx, [ebp - 0x78]
push ecx
push 0x200
lea ebx, [esi + 2]
push ebx
push 0x48c8a4
push str.Server
push str.General
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebx], 0
jne 0x409b76
mov eax, str.NFEUYCN729YZGJW1UGDCT9Y3NRAP1CY9S649AFA5ZB0UJEXRHDVPF0KX5
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409ad1
sub eax, edx
lea esi, [eax + 1]
lea eax, [esi + 8]
cmp eax, 0x400
ja 0x409b01
call fcn.004705a0
mov edi, esp
test edi, edi
je 0x409b73
mov dword [edi], 0xcccc
add edi, 8
jmp 0x409b19
push eax
call fcn.00470108
add esp, 4
test eax, eax
je 0x409b17
mov dword [eax], 0xdddd
add eax, 8
mov edi, eax
test edi, edi
je 0x409b73
push 0
push esi
push edi
dec esi
push esi
push str.NFEUYCN729YZGJW1UGDCT9Y3NRAP1CY9S649AFA5ZB0UJEXRHDVPF0KX5
call fcn.0040f910
add esp, 0x14
test eax, eax
jne 0x409b5f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.004705a0
mov eax, esp
push esi
push edi
push eax
call fcn.00401000
push eax
push 0x200
push ebx
call fcn.0046fe12
add esp, 0xc
add edi, 0xfffffff8
cmp dword [edi], 0xdddd
jne 0x409b73
push edi
call fcn.0046ec03
add esp, 4
mov esi, dword [ebp - 0x7c]
lea edx, [ebp - 0x78]
push edx
push 0x200
lea edi, [esi + 0x402]
push edi
push 0x48c8a4
push 0x4993fc
push str.General
mov dword [ebp - 0x80], edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [edi], 0
jne 0x409c58
mov eax, str.DBNYCN729YZGJA63VRNPZCA926J9VFV529CUR5NE22K4N9DAY7CGJ21A4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409bb0
sub eax, edx
lea ebx, [eax + 1]
lea eax, [ebx + 8]
cmp eax, 0x400
ja 0x409be0
call fcn.004705a0
mov edi, esp
test edi, edi
je 0x409c58
mov dword [edi], 0xcccc
add edi, 8
jmp 0x409bf8
push eax
call fcn.00470108
add esp, 4
test eax, eax
je 0x409bf6
mov dword [eax], 0xdddd
add eax, 8
mov edi, eax
test edi, edi
je 0x409c58
push 0
push ebx
push edi
dec ebx
push ebx
push str.DBNYCN729YZGJA63VRNPZCA926J9VFV529CUR5NE22K4N9DAY7CGJ21A4
call fcn.0040f910
add esp, 0x14
test eax, eax
jne 0x409c44
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.004705a0
mov eax, esp
push esi
push edi
push eax
call fcn.00401000
push eax
mov eax, dword [ebp - 0x80]
push 0x200
push eax
call fcn.0046fe12
mov esi, dword [ebp - 0x7c]
add esp, 0xc
add edi, 0xfffffff8
cmp dword [edi], 0xdddd
jne 0x409c58
push edi
call fcn.0046ec03
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x78]
push ecx
push 0x40
lea edx, [esi + 0x802]
push edx
push 0x48c8a4
push str.Login
push str.Http
call edi
lea eax, [ebp - 0x78]
push eax
push 0x40
lea ecx, [esi + 0x882]
push ecx
push 0x48c8a4
push 0x499bb4
push str.Http
call edi
mov eax, esi
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
call fcn.0046ecfa
add ebp, 0x194
mov esp, ebp
pop ebp
ret 4