Function at 0x4146b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38c
mov eax, dword [0x4a86f0]
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.0040d050
add esp, 8
test eax, eax
je 0x4146ea
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.00413bf0
mov eax, str.746F6F6C732E6176616E71756573742E636F6D
add esp, 8
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x414722
sub eax, ecx
lea ecx, [ebp - 0x38c]
push ecx
push 0x200
lea esi, [ebx + 2]
push esi
push 0x487854
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 0x4147a4
lea edx, [ebp - 0x184]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x41477b
xor eax, eax
jmp 0x414795
lea eax, [edi + edi]
call fcn.0046dbb0
mov eax, esp
push 0
push edi
lea ecx, [ebp - 0x184]
push ecx
push eax
call fcn.00434c40
push eax
push 0x200
push esi
call fcn.0046bf5a
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 0x487854
push str.UrlAP
push str.General
call esi
cmp word [edi], 0
jne 0x41484d
lea eax, [ebp - 0x104]
push str.2F41637469766174696F6E2F4E756D65726F41637469662E617370
push eax
call fcn.00413bf0
mov eax, str.2F41637469766174696F6E2F4E756D65726F41637469662E617370
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4147f0
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 0x41481e
xor eax, eax
jmp 0x414838
lea eax, [esi + esi]
call fcn.0046dbb0
mov eax, esp
push 0
push esi
lea edx, [ebp - 0x104]
push edx
push eax
call fcn.00434c40
push eax
push 0x200
push edi
call fcn.0046bf5a
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 0x487854
push str.UrlRL
push str.General
call esi
cmp word [edi], 0
jne 0x4148f0
lea ecx, [ebp - 0x104]
push str.2F41637469766174696F6E2F526573694C6963656E63652E617370
push ecx
call fcn.00413bf0
mov eax, str.2F41637469766174696F6E2F526573694C6963656E63652E617370
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x414893
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 0x4148c1
xor eax, eax
jmp 0x4148db
lea eax, [esi + esi]
call fcn.0046dbb0
mov eax, esp
push 0
push esi
lea ecx, [ebp - 0x104]
push ecx
push eax
call fcn.00434c40
push eax
push 0x200
push edi
call fcn.0046bf5a
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 0x487854
push str.Login
push str.Http
call esi
lea ecx, [ebp - 0x38c]
push ecx
push 0x40
add ebx, 0xc82
push ebx
push 0x487854
push 0x490ed8
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.004698aa
mov esp, ebp
pop ebp
ret