Function at 0x475670
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x390
mov eax, dword [0x4b1120]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x38c]
push 0x104
push eax
mov dword [ebp - 0x390], edi
call fcn.0046e020
add esp, 8
test eax, eax
je 0x4756b0
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 [edi], ax
lea eax, [ebp - 0x84]
push str.746F6F6C732E6176616E71756573742E636F6D
push eax
call fcn.004711e0
mov eax, str.746F6F6C732E6176616E71756573742E636F6D
add esp, 8
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4756e8
sub eax, ecx
lea ecx, [ebp - 0x38c]
push ecx
push 0x200
lea esi, [edi + 2]
push esi
push 0x49c298
push str.Server
shr eax, 1
push str.General
mov byte [ebp + eax - 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [esi], 0
jne 0x47576c
lea edx, [ebp - 0x84]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
lea eax, [edi + edi]
call fcn.0044a220
mov ebx, esp
push edi
push ebx
push 0xffffffffffffffff
xor eax, eax
lea ecx, [ebp - 0x84]
push ecx
push eax
push eax
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push 0x200
push esi
call fcn.0044a00d
mov edi, dword [ebp - 0x390]
add esp, 0xc
lea edx, [ebp - 0x38c]
push edx
push 0x200
lea ebx, [edi + 0x402]
push ebx
push 0x49c298
push str.UrlAP
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebx], 0
jne 0x47580f
lea eax, [ebp - 0x184]
push str.2F41637469766174696F6E2F4E756D65726F41637469662E617370
push eax
call fcn.004711e0
mov eax, str.2F41637469766174696F6E2F4E756D65726F41637469662E617370
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4757b6
sub eax, edx
shr eax, 1
mov byte [ebp + eax - 0x184], cl
lea ecx, [ebp - 0x184]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0044a220
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
xor edx, edx
lea eax, [ebp - 0x184]
push eax
push edx
push edx
mov word [edi], dx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
push 0x200
push ebx
call fcn.0044a00d
mov edi, dword [ebp - 0x390]
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x38c]
push ecx
push 0x200
lea ebx, [edi + 0x802]
push ebx
push 0x49c298
push str.UrlRL
push str.General
call esi
cmp word [ebx], 0
jne 0x4758bf
lea edx, [ebp - 0x184]
push str.2F41637469766174696F6E2F526573694C6963656E63652E617370
push edx
call fcn.004711e0
mov eax, str.2F41637469766174696F6E2F526573694C6963656E63652E617370
add esp, 8
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x475860
sub eax, edx
shr eax, 1
mov byte [ebp + eax - 0x184], cl
lea eax, [ebp - 0x184]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0044a220
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
xor ecx, ecx
lea edx, [ebp - 0x184]
push edx
push ecx
push ecx
mov word [edi], cx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
push 0x200
push ebx
call fcn.0044a00d
mov edi, dword [ebp - 0x390]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0xc
lea eax, [ebp - 0x38c]
push eax
push 0x40
lea ecx, [edi + 0xc02]
push ecx
push 0x49c298
push str.Login
push str.Http
call esi
lea edx, [ebp - 0x38c]
push edx
push 0x40
add edi, 0xc82
push edi
push 0x49c298
push 0x4aaf40
push str.Http
call esi
lea esp, [ebp - 0x39c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447645
mov esp, ebp
pop ebp
ret