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

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x4cd724]
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.004677c0
add esp, 0xc
cmp dword [ebp + 0x19c], 0
je 0x49f43a
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x49f214
push 0x104
lea ecx, [ebp - 0x78]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jbe 0x49f214
lea edx, [ebp - 0x78]
push 0x2e
push edx
call fcn.0046a933
add esp, 8
test eax, eax
je 0x49f1ea
mov ecx, eax
lea edx, [ebp - 0x78]
sub ecx, edx
sar ecx, 1
mov edx, 0x103
push 0x4c56b8
sub edx, ecx
push edx
add eax, 2
push eax
call fcn.0046a10d
add esp, 0xc
test eax, eax
je 0x49f204
jmp 0x49f21e
push str..ini
lea eax, [ebp - 0x78]
push 0x104
push eax
call fcn.00467c81
add esp, 0xc
test eax, eax
jne 0x49f21e
lea ecx, [ebp - 0x78]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49f224
jmp 0x49f21e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x49f224
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 0x4c1540
push str.Server
push str.General
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebx], 0
jne 0x49f316
mov eax, str.NFEUYCN729YZGJW1UGDCT9Y3NRAP1CY9S649AFA5ZB0UJEXRHDVPF0KX5
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49f271
sub eax, edx
lea esi, [eax + 1]
lea eax, [esi + 8]
cmp eax, 0x400
ja 0x49f2a1
call fcn.0046d420
mov edi, esp
test edi, edi
je 0x49f313
mov dword [edi], 0xcccc
add edi, 8
jmp 0x49f2b9
push eax
call fcn.004683d7
add esp, 4
test eax, eax
je 0x49f2b7
mov dword [eax], 0xdddd
add eax, 8
mov edi, eax
test edi, edi
je 0x49f313
push 0
push esi
push edi
dec esi
push esi
push str.NFEUYCN729YZGJW1UGDCT9Y3NRAP1CY9S649AFA5ZB0UJEXRHDVPF0KX5
call fcn.004a50f0
add esp, 0x14
test eax, eax
jne 0x49f2ff
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0046d420
mov eax, esp
push esi
push edi
push eax
call fcn.00487ad8
push eax
push 0x200
push ebx
call fcn.0046a10d
add esp, 0xc
add edi, 0xfffffff8
cmp dword [edi], 0xdddd
jne 0x49f313
push edi
call fcn.004684a1
add esp, 4
mov esi, dword [ebp - 0x7c]
lea edx, [ebp - 0x78]
push edx
push 0x200
lea edi, [esi + 0x402]
push edi
push 0x4c1540
push 0x4c56fc
push str.General
mov dword [ebp - 0x80], edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [edi], 0
jne 0x49f3f8
mov eax, str.DBNYCN729YZGJA63VRNPZCA926J9VFV529CUR5NE22K4N9DAY7CGJ21A4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49f350
sub eax, edx
lea ebx, [eax + 1]
lea eax, [ebx + 8]
cmp eax, 0x400
ja 0x49f380
call fcn.0046d420
mov edi, esp
test edi, edi
je 0x49f3f8
mov dword [edi], 0xcccc
add edi, 8
jmp 0x49f398
push eax
call fcn.004683d7
add esp, 4
test eax, eax
je 0x49f396
mov dword [eax], 0xdddd
add eax, 8
mov edi, eax
test edi, edi
je 0x49f3f8
push 0
push ebx
push edi
dec ebx
push ebx
push str.DBNYCN729YZGJA63VRNPZCA926J9VFV529CUR5NE22K4N9DAY7CGJ21A4
call fcn.004a50f0
add esp, 0x14
test eax, eax
jne 0x49f3e4
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0046d420
mov eax, esp
push esi
push edi
push eax
call fcn.00487ad8
push eax
mov eax, dword [ebp - 0x80]
push 0x200
push eax
call fcn.0046a10d
mov esi, dword [ebp - 0x7c]
add esp, 0xc
add edi, 0xfffffff8
cmp dword [edi], 0xdddd
jne 0x49f3f8
push edi
call fcn.004684a1
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 0x4c1540
push str.Login
push str.Http
call edi
lea eax, [ebp - 0x78]
push eax
push 0x40
lea ecx, [esi + 0x882]
push ecx
push 0x4c1540
push 0x4c4f9c
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.004677af
add ebp, 0x194
mov esp, ebp
pop ebp
ret 4