Function at 0x49f6f0
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.00467d60
add esp, 0xc
cmp dword [ebp + 0x19c], 0
je 0x49f9da
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x49f7b4
push 0x104
lea ecx, [ebp - 0x78]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jbe 0x49f7b4
lea edx, [ebp - 0x78]
push 0x2e
push edx
call fcn.0046aed3
add esp, 8
test eax, eax
je 0x49f78a
mov ecx, eax
lea edx, [ebp - 0x78]
sub ecx, edx
sar ecx, 1
mov edx, 0x103
push 0x4c6908
sub edx, ecx
push edx
add eax, 2
push eax
call fcn.0046a6ad
add esp, 0xc
test eax, eax
je 0x49f7a4
jmp 0x49f7be
push str..ini
lea eax, [ebp - 0x78]
push 0x104
push eax
call fcn.00468221
add esp, 0xc
test eax, eax
jne 0x49f7be
lea ecx, [ebp - 0x78]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49f7c4
jmp 0x49f7be
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x49f7c4
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 0x4c2790
push str.Server
push str.General
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebx], 0
jne 0x49f8b6
mov eax, str.NFEUYCN729YZGJW1UGDCT9Y3NRAP1CY9S649AFA5ZB0UJEXRHDVPF0KX5
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49f811
sub eax, edx
lea esi, [eax + 1]
lea eax, [esi + 8]
cmp eax, 0x400
ja 0x49f841
call fcn.0046d9c0
mov edi, esp
test edi, edi
je 0x49f8b3
mov dword [edi], 0xcccc
add edi, 8
jmp 0x49f859
push eax
call fcn.00468977
add esp, 4
test eax, eax
je 0x49f857
mov dword [eax], 0xdddd
add eax, 8
mov edi, eax
test edi, edi
je 0x49f8b3
push 0
push esi
push edi
dec esi
push esi
push str.NFEUYCN729YZGJW1UGDCT9Y3NRAP1CY9S649AFA5ZB0UJEXRHDVPF0KX5
call fcn.004a5690
add esp, 0x14
test eax, eax
jne 0x49f89f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0046d9c0
mov eax, esp
push esi
push edi
push eax
call fcn.00488078
push eax
push 0x200
push ebx
call fcn.0046a6ad
add esp, 0xc
add edi, 0xfffffff8
cmp dword [edi], 0xdddd
jne 0x49f8b3
push edi
call fcn.00468a41
add esp, 4
mov esi, dword [ebp - 0x7c]
lea edx, [ebp - 0x78]
push edx
push 0x200
lea edi, [esi + 0x402]
push edi
push 0x4c2790
push 0x4c694c
push str.General
mov dword [ebp - 0x80], edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [edi], 0
jne 0x49f998
mov eax, str.DBNYCN729YZGJA63VRNPZCA926J9VFV529CUR5NE22K4N9DAY7CGJ21A4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49f8f0
sub eax, edx
lea ebx, [eax + 1]
lea eax, [ebx + 8]
cmp eax, 0x400
ja 0x49f920
call fcn.0046d9c0
mov edi, esp
test edi, edi
je 0x49f998
mov dword [edi], 0xcccc
add edi, 8
jmp 0x49f938
push eax
call fcn.00468977
add esp, 4
test eax, eax
je 0x49f936
mov dword [eax], 0xdddd
add eax, 8
mov edi, eax
test edi, edi
je 0x49f998
push 0
push ebx
push edi
dec ebx
push ebx
push str.DBNYCN729YZGJA63VRNPZCA926J9VFV529CUR5NE22K4N9DAY7CGJ21A4
call fcn.004a5690
add esp, 0x14
test eax, eax
jne 0x49f984
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0046d9c0
mov eax, esp
push esi
push edi
push eax
call fcn.00488078
push eax
mov eax, dword [ebp - 0x80]
push 0x200
push eax
call fcn.0046a6ad
mov esi, dword [ebp - 0x7c]
add esp, 0xc
add edi, 0xfffffff8
cmp dword [edi], 0xdddd
jne 0x49f998
push edi
call fcn.00468a41
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 0x4c2790
push str.Login
push str.Http
call edi
lea eax, [ebp - 0x78]
push eax
push 0x40
lea ecx, [esi + 0x882]
push ecx
push 0x4c2790
push 0x4c61ec
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.00467d4f
add ebp, 0x194
mov esp, ebp
pop ebp
ret 4