Function at 0x508c50
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
sub esp, 0x108
push ebx
push ebp
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
mov ebp, dword [esp + 0x11c]
test ebp, ebp
je 0x508f2f
lea eax, [ebx + 0x8c]
push 0
push 0
push eax
mov ecx, ebx
call fcn.00508a90
test eax, eax
je 0x508f2f
mov al, byte [ebx + 0x10c]
lea esi, [ebx + 0x10c]
test al, al
je 0x508d2c
push 0x581840
push esi
call dword [sym.imp.MSVCRT.dll_strstr]
push 0x58ea98
push esi
mov edi, eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 0x10
test eax, eax
je 0x508cf5
test edi, edi
je 0x508cf5
cmp eax, edi
jae 0x508cf5
mov eax, dword [esp + 0x120]
mov ecx, ebx
push eax
push ebp
call fcn.00509210
lea ecx, [esp + 0x10]
mov esi, eax
call sub.MFC42.DLL_CString::CString
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 8
lea ecx, [esp + 0x10]
push ecx
push 0
push esi
mov ecx, ebx
call fcn.0050aa00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x120]
push edx
push eax
push ebp
push str.CONNECT__s:_d_HTTP_1.0_r_nProxy_Authorization:_Basic__s_r_n_r_n
lea ecx, [esp + 0x28]
push 0xff
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x18
jmp 0x508d4d
mov edx, dword [esp + 0x120]
lea eax, [esp + 0x18]
push edx
push ebp
push str.CONNECT__s:_d_HTTP_1.0_r_n_r_n
push 0xff
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
or ebp, 0xffffffff
lea edi, [esp + 0x18]
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [ebx + 4]
mov dword [esp + 0x14], 0xa
not ecx
dec ecx
cmp eax, ebp
mov esi, ecx
lea edi, [esp + 0x18]
je 0x508f2f
lea ecx, [esp + 0x18]
test ecx, ecx
je 0x508f2f
test esi, esi
jl 0x508f2f
jle 0x508de2
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov edx, dword [ebx + 4]
push 0
push esi
push edi
push edx
call sub.WS2_32.dll_send
cmp eax, 1
jge 0x508dcf
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x508e7c
mov eax, dword [esp + 0x14]
dec eax
test eax, eax
mov dword [esp + 0x14], eax
jle 0x508e7c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x508ddb
push eax
push 0x5a1094
add edi, eax
sub esi, eax
call ebp
test esi, esi
jg 0x508d92
or ebp, 0xffffffff
lea ecx, [esp + 0x18]
push 0xfa
push ecx
mov ecx, ebx
call fcn.0050abd0
test eax, eax
je 0x508f2f
mov ecx, 5
mov edi, str.HTTP_
lea esi, [esp + 0x18]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x508ef4
lea eax, [esp + 0x18]
push 0x5829dc
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x508ef4
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
cmp eax, 0xc8
je 0x508ea5
lea eax, [ebx + 0x8c]
lea ecx, [esp + 0x18]
push eax
push ecx
push str.HTTP_Proxy:__s___s_
push 1
push 0x596558
call fcn.004aa400
mov eax, dword [ebx + 4]
add esp, 0x14
cmp eax, ebp
je 0x508f2f
push 2
push eax
call sub.WS2_32.dll_shutdown
mov edx, dword [ebx + 4]
push edx
jmp 0x508f27
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
je 0x508f2f
push 2
push eax
call sub.WS2_32.dll_shutdown
mov eax, dword [ebx + 4]
push eax
call sub.WS2_32.dll_closesocket
mov dword [ebx + 4], 0xffffffff
jmp 0x508f2f
lea eax, [esp + 0x18]
push 0xfa
push eax
mov ecx, ebx
call fcn.0050abd0
test eax, eax
je 0x508f2f
mov al, byte [esp + 0x18]
test al, al
je 0x508ed9
lea ecx, [esp + 0x18]
push 0xfa
push ecx
mov ecx, ebx
call fcn.0050abd0
test eax, eax
jne 0x508eba
jmp 0x508f2f
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret 8
lea eax, [ebx + 0x8c]
lea edx, [esp + 0x18]
push eax
push edx
push str.HTTP_Proxy:_invalid_answer__s___s_
push 1
push 0x596558
call fcn.004aa400
mov eax, dword [ebx + 4]
add esp, 0x14
cmp eax, ebp
je 0x508f2f
push 2
push eax
call sub.WS2_32.dll_shutdown
mov eax, dword [ebx + 4]
push eax
call sub.WS2_32.dll_closesocket
mov dword [ebx + 4], ebp
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
ret 8