Function at 0x496650
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.0048f0b0
add esp, 8
test eax, eax
je 0x49668a
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.00495ba0
mov eax, str.746F6F6C732E6176616E71756573742E636F6D
add esp, 8
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4966c2
sub eax, ecx
lea ecx, [ebp - 0x38c]
push ecx
push 0x200
lea esi, [ebx + 2]
push esi
push 0x4c2810
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 0x496744
lea edx, [ebp - 0x184]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x49671b
xor eax, eax
jmp 0x496735
lea eax, [edi + edi]
call fcn.0046dc70
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.0046a95d
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 0x4c2810
push str.UrlAP
push str.General
call esi
cmp word [edi], 0
jne 0x4967ed
lea eax, [ebp - 0x104]
push str.2F41637469766174696F6E2F4E756D65726F41637469662E617370
push eax
call fcn.00495ba0
mov eax, str.2F41637469766174696F6E2F4E756D65726F41637469662E617370
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x496790
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 0x4967be
xor eax, eax
jmp 0x4967d8
lea eax, [esi + esi]
call fcn.0046dc70
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.0046a95d
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 0x4c2810
push str.UrlRL
push str.General
call esi
cmp word [edi], 0
jne 0x496890
lea ecx, [ebp - 0x104]
push str.2F41637469766174696F6E2F526573694C6963656E63652E617370
push ecx
call fcn.00495ba0
mov eax, str.2F41637469766174696F6E2F526573694C6963656E63652E617370
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x496833
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 0x496861
xor eax, eax
jmp 0x49687b
lea eax, [esi + esi]
call fcn.0046dc70
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.0046a95d
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 0x4c2810
push str.Login
push str.Http
call esi
lea ecx, [ebp - 0x38c]
push ecx
push 0x40
add ebx, 0xc82
push ebx
push 0x4c2810
push 0x4c626c
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.00467fff
mov esp, ebp
pop ebp
ret