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

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x4a86f0]
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.0046a330
add esp, 0xc
cmp dword [ebp + 0x19c], 0
je 0x41b87a
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41b654
push 0x104
lea ecx, [ebp - 0x78]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jbe 0x41b654
lea edx, [ebp - 0x78]
push 0x2e
push edx
call fcn.0046ccb3
add esp, 8
test eax, eax
je 0x41b62a
mov ecx, eax
lea edx, [ebp - 0x78]
sub ecx, edx
sar ecx, 1
mov edx, 0x103
push 0x4a13fc
sub edx, ecx
push edx
add eax, 2
push eax
call fcn.0046befa
add esp, 0xc
test eax, eax
je 0x41b644
jmp 0x41b65e
push str..ini
lea eax, [ebp - 0x78]
push 0x104
push eax
call fcn.00469454
add esp, 0xc
test eax, eax
jne 0x41b65e
lea ecx, [ebp - 0x78]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41b664
jmp 0x41b65e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41b664
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 0x487854
push str.Server
push str.General
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebx], 0
jne 0x41b756
mov eax, str.NFEUYCN729YZGJW1UGDCT9Y3NRAP1CY9S649AFA5ZB0UJEXRHDVPF0KX5
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41b6b1
sub eax, edx
lea esi, [eax + 1]
lea eax, [esi + 8]
cmp eax, 0x400
ja 0x41b6e1
call fcn.0046db50
mov edi, esp
test edi, edi
je 0x41b753
mov dword [edi], 0xcccc
add edi, 8
jmp 0x41b6f9
push eax
call fcn.0046a57b
add esp, 4
test eax, eax
je 0x41b6f7
mov dword [eax], 0xdddd
add eax, 8
mov edi, eax
test edi, edi
je 0x41b753
push 0
push esi
push edi
dec esi
push esi
push str.NFEUYCN729YZGJW1UGDCT9Y3NRAP1CY9S649AFA5ZB0UJEXRHDVPF0KX5
call fcn.004214f0
add esp, 0x14
test eax, eax
jne 0x41b73f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0046db50
mov eax, esp
push esi
push edi
push eax
call fcn.00406299
push eax
push 0x200
push ebx
call fcn.0046befa
add esp, 0xc
add edi, 0xfffffff8
cmp dword [edi], 0xdddd
jne 0x41b753
push edi
call fcn.00469753
add esp, 4
mov esi, dword [ebp - 0x7c]
lea edx, [ebp - 0x78]
push edx
push 0x200
lea edi, [esi + 0x402]
push edi
push 0x487854
push 0x4909f8
push str.General
mov dword [ebp - 0x80], edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [edi], 0
jne 0x41b838
mov eax, str.DBNYCN729YZGJA63VRNPZCA926J9VFV529CUR5NE22K4N9DAY7CGJ21A4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41b790
sub eax, edx
lea ebx, [eax + 1]
lea eax, [ebx + 8]
cmp eax, 0x400
ja 0x41b7c0
call fcn.0046db50
mov edi, esp
test edi, edi
je 0x41b838
mov dword [edi], 0xcccc
add edi, 8
jmp 0x41b7d8
push eax
call fcn.0046a57b
add esp, 4
test eax, eax
je 0x41b7d6
mov dword [eax], 0xdddd
add eax, 8
mov edi, eax
test edi, edi
je 0x41b838
push 0
push ebx
push edi
dec ebx
push ebx
push str.DBNYCN729YZGJA63VRNPZCA926J9VFV529CUR5NE22K4N9DAY7CGJ21A4
call fcn.004214f0
add esp, 0x14
test eax, eax
jne 0x41b824
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0046db50
mov eax, esp
push esi
push edi
push eax
call fcn.00406299
push eax
mov eax, dword [ebp - 0x80]
push 0x200
push eax
call fcn.0046befa
mov esi, dword [ebp - 0x7c]
add esp, 0xc
add edi, 0xfffffff8
cmp dword [edi], 0xdddd
jne 0x41b838
push edi
call fcn.00469753
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 0x487854
push str.Login
push str.Http
call edi
lea eax, [ebp - 0x78]
push eax
push 0x40
lea ecx, [esi + 0x882]
push ecx
push 0x487854
push 0x490ef0
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.0046984a
add ebp, 0x194
mov esp, ebp
pop ebp
ret 4