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

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x4ce724]
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.00468010
add esp, 0xc
cmp dword [ebp + 0x19c], 0
je 0x49fcaa
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x49fa84
push 0x104
lea ecx, [ebp - 0x78]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jbe 0x49fa84
lea edx, [ebp - 0x78]
push 0x2e
push edx
call fcn.0046b183
add esp, 8
test eax, eax
je 0x49fa5a
mov ecx, eax
lea edx, [ebp - 0x78]
sub ecx, edx
sar ecx, 1
mov edx, 0x103
push 0x4c6988
sub edx, ecx
push edx
add eax, 2
push eax
call fcn.0046a95d
add esp, 0xc
test eax, eax
je 0x49fa74
jmp 0x49fa8e
push str..ini
lea eax, [ebp - 0x78]
push 0x104
push eax
call fcn.004684d1
add esp, 0xc
test eax, eax
jne 0x49fa8e
lea ecx, [ebp - 0x78]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49fa94
jmp 0x49fa8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x49fa94
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 0x4c2810
push str.Server
push str.General
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebx], 0
jne 0x49fb86
mov eax, str.NFEUYCN729YZGJW1UGDCT9Y3NRAP1CY9S649AFA5ZB0UJEXRHDVPF0KX5
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49fae1
sub eax, edx
lea esi, [eax + 1]
lea eax, [esi + 8]
cmp eax, 0x400
ja 0x49fb11
call fcn.0046dc70
mov edi, esp
test edi, edi
je 0x49fb83
mov dword [edi], 0xcccc
add edi, 8
jmp 0x49fb29
push eax
call fcn.00468c27
add esp, 4
test eax, eax
je 0x49fb27
mov dword [eax], 0xdddd
add eax, 8
mov edi, eax
test edi, edi
je 0x49fb83
push 0
push esi
push edi
dec esi
push esi
push str.NFEUYCN729YZGJW1UGDCT9Y3NRAP1CY9S649AFA5ZB0UJEXRHDVPF0KX5
call fcn.004a5960
add esp, 0x14
test eax, eax
jne 0x49fb6f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0046dc70
mov eax, esp
push esi
push edi
push eax
call fcn.00488338
push eax
push 0x200
push ebx
call fcn.0046a95d
add esp, 0xc
add edi, 0xfffffff8
cmp dword [edi], 0xdddd
jne 0x49fb83
push edi
call fcn.00468cf1
add esp, 4
mov esi, dword [ebp - 0x7c]
lea edx, [ebp - 0x78]
push edx
push 0x200
lea edi, [esi + 0x402]
push edi
push 0x4c2810
push 0x4c69cc
push str.General
mov dword [ebp - 0x80], edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [edi], 0
jne 0x49fc68
mov eax, str.DBNYCN729YZGJA63VRNPZCA926J9VFV529CUR5NE22K4N9DAY7CGJ21A4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49fbc0
sub eax, edx
lea ebx, [eax + 1]
lea eax, [ebx + 8]
cmp eax, 0x400
ja 0x49fbf0
call fcn.0046dc70
mov edi, esp
test edi, edi
je 0x49fc68
mov dword [edi], 0xcccc
add edi, 8
jmp 0x49fc08
push eax
call fcn.00468c27
add esp, 4
test eax, eax
je 0x49fc06
mov dword [eax], 0xdddd
add eax, 8
mov edi, eax
test edi, edi
je 0x49fc68
push 0
push ebx
push edi
dec ebx
push ebx
push str.DBNYCN729YZGJA63VRNPZCA926J9VFV529CUR5NE22K4N9DAY7CGJ21A4
call fcn.004a5960
add esp, 0x14
test eax, eax
jne 0x49fc54
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0046dc70
mov eax, esp
push esi
push edi
push eax
call fcn.00488338
push eax
mov eax, dword [ebp - 0x80]
push 0x200
push eax
call fcn.0046a95d
mov esi, dword [ebp - 0x7c]
add esp, 0xc
add edi, 0xfffffff8
cmp dword [edi], 0xdddd
jne 0x49fc68
push edi
call fcn.00468cf1
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 0x4c2810
push str.Login
push str.Http
call edi
lea eax, [ebp - 0x78]
push eax
push 0x40
lea ecx, [esi + 0x882]
push ecx
push 0x4c2810
push 0x4c626c
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.00467fff
add ebp, 0x194
mov esp, ebp
pop ebp
ret 4