Function at 0x496390
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38c
mov eax, dword [0x4ce724]
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.0048ede0
add esp, 8
test eax, eax
je 0x4963ca
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.004958e0
mov eax, str.746F6F6C732E6176616E71756573742E636F6D
add esp, 8
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x496402
sub eax, ecx
lea ecx, [ebp - 0x38c]
push ecx
push 0x200
lea esi, [ebx + 2]
push esi
push 0x4c2790
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 0x496484
lea edx, [ebp - 0x184]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x49645b
xor eax, eax
jmp 0x496475
lea eax, [edi + edi]
call fcn.0046d9c0
mov eax, esp
push 3
push edi
lea ecx, [ebp - 0x184]
push ecx
push eax
call fcn.0041f650
push eax
push 0x200
push esi
call fcn.0046a6ad
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 0x4c2790
push str.UrlAP
push str.General
call esi
cmp word [edi], 0
jne 0x49652d
lea eax, [ebp - 0x104]
push str.2F41637469766174696F6E2F4E756D65726F41637469662E617370
push eax
call fcn.004958e0
mov eax, str.2F41637469766174696F6E2F4E756D65726F41637469662E617370
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4964d0
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 0x4964fe
xor eax, eax
jmp 0x496518
lea eax, [esi + esi]
call fcn.0046d9c0
mov eax, esp
push 3
push esi
lea edx, [ebp - 0x104]
push edx
push eax
call fcn.0041f650
push eax
push 0x200
push edi
call fcn.0046a6ad
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 0x4c2790
push str.UrlRL
push str.General
call esi
cmp word [edi], 0
jne 0x4965d0
lea ecx, [ebp - 0x104]
push str.2F41637469766174696F6E2F526573694C6963656E63652E617370
push ecx
call fcn.004958e0
mov eax, str.2F41637469766174696F6E2F526573694C6963656E63652E617370
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x496573
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 0x4965a1
xor eax, eax
jmp 0x4965bb
lea eax, [esi + esi]
call fcn.0046d9c0
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x104]
push ecx
push eax
call fcn.0041f650
push eax
push 0x200
push edi
call fcn.0046a6ad
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 0x4c2790
push str.Login
push str.Http
call esi
lea ecx, [ebp - 0x38c]
push ecx
push 0x40
add ebx, 0xc82
push ebx
push 0x4c2790
push 0x4c61ec
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.00467d4f
mov esp, ebp
pop ebp
ret