Function at 0x495df0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38c
mov eax, dword [0x4cd724]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea eax, [ebp - 0x38c]
push 0x104
push eax
call fcn.0048e840
add esp, 8
test eax, eax
je 0x495e2a
xor ecx, ecx
mov word [ebp - 0x38c], cx
lea edx, [ebp - 0x38c]
push edx
push 0x50
push str.Port
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov word [ebx], ax
lea eax, [ebp - 0x184]
push str.746F6F6C732E6176616E71756573742E636F6D
push eax
call fcn.00495340
mov eax, str.746F6F6C732E6176616E71756573742E636F6D
add esp, 8
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x495e62
sub eax, ecx
lea ecx, [ebp - 0x38c]
push ecx
push 0x200
lea esi, [ebx + 2]
push esi
push 0x4c1540
push str.Server
shr eax, 1
push str.General
mov byte [ebp + eax - 0x184], dl
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [esi], 0
jne 0x495ee4
lea edx, [ebp - 0x184]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x495ebb
xor eax, eax
jmp 0x495ed5
lea eax, [edi + edi]
call fcn.0046d420
mov eax, esp
push 3
push edi
lea ecx, [ebp - 0x184]
push ecx
push eax
call fcn.0041f5f0
push eax
push 0x200
push esi
call fcn.0046a10d
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [ebp - 0x38c]
push edx
push 0x200
lea edi, [ebx + 0x402]
push edi
push 0x4c1540
push str.UrlAP
push str.General
call esi
cmp word [edi], 0
jne 0x495f8d
lea eax, [ebp - 0x104]
push str.2F41637469766174696F6E2F4E756D65726F41637469662E617370
push eax
call fcn.00495340
mov eax, str.2F41637469766174696F6E2F4E756D65726F41637469662E617370
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x495f30
sub eax, edx
shr eax, 1
mov byte [ebp + eax - 0x104], cl
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x495f5e
xor eax, eax
jmp 0x495f78
lea eax, [esi + esi]
call fcn.0046d420
mov eax, esp
push 3
push esi
lea edx, [ebp - 0x104]
push edx
push eax
call fcn.0041f5f0
push eax
push 0x200
push edi
call fcn.0046a10d
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0xc
lea eax, [ebp - 0x38c]
push eax
push 0x200
lea edi, [ebx + 0x802]
push edi
push 0x4c1540
push str.UrlRL
push str.General
call esi
cmp word [edi], 0
jne 0x496030
lea ecx, [ebp - 0x104]
push str.2F41637469766174696F6E2F526573694C6963656E63652E617370
push ecx
call fcn.00495340
mov eax, str.2F41637469766174696F6E2F526573694C6963656E63652E617370
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x495fd3
sub eax, edx
lea edx, [ebp - 0x104]
shr eax, 1
push edx
mov byte [ebp + eax - 0x104], cl
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x496001
xor eax, eax
jmp 0x49601b
lea eax, [esi + esi]
call fcn.0046d420
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x104]
push ecx
push eax
call fcn.0041f5f0
push eax
push 0x200
push edi
call fcn.0046a10d
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0xc
lea edx, [ebp - 0x38c]
push edx
push 0x40
lea eax, [ebx + 0xc02]
push eax
push 0x4c1540
push str.Login
push str.Http
call esi
lea ecx, [ebp - 0x38c]
push ecx
push 0x40
add ebx, 0xc82
push ebx
push 0x4c1540
push 0x4c4f9c
push str.Http
call esi
lea esp, [ebp - 0x398]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004677af
mov esp, ebp
pop ebp
ret