Function at 0x100343e0
Capabilities:
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x5d
push 5
movsx eax, byte [esi + 0x2e9]
xor edi, edi
push esi
mov dword [ebp + 8], edi
lea ebx, [eax + eax*2]
shl ebx, 6
add ebx, dword [esi]
call fcn.1001c0b0
add esp, 0xc
test eax, eax
je 0x10034448
mov ecx, 0x10045444
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10034436
test dl, dl
je 0x10034432
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10034436
add eax, 2
add ecx, 2
test dl, dl
jne 0x10034416
xor eax, eax
jmp 0x1003443b
sbb eax, eax
or eax, 1
test eax, eax
mov ecx, 1
cmove edi, ecx
mov dword [ebp + 8], edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x10034580
mov eax, dword [esi + 4]
cmp dword [eax + 0x12c], edi
je 0x10034571
push 0x59
push edi
push esi
call fcn.1001c0b0
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x1003464f
movzx eax, word [esi + 0x2dc]
push eax
push ecx
push eax
push ecx
push str.CONNECT__s:_u_HTTP_1.1_r_nHost:__s:_u_r_nUser_agent:_lws_r_n
push 0x100
push dword [ebx + 0x1b0]
call fcn.10020380
mov edi, eax
add esp, 0x1c
mov eax, dword [esi + 4]
cmp byte [eax], 0
je 0x100344c3
push eax
mov eax, dword [ebx + 0x1b0]
push str.Proxy_authorization:_basic__s_r_n
add eax, edi
push 0x100
push eax
call fcn.10020380
add esp, 0x10
add edi, eax
mov eax, dword [ebx + 0x1b0]
push 0x10047280
add eax, edi
push 5
push eax
call fcn.10020380
mov ecx, dword [esi + 0x260]
add edi, eax
mov eax, dword [esi + 4]
add esp, 0xc
add eax, 0xa4
test ecx, ecx
je 0x100344f3
mov dword [ecx], eax
jmp 0x10034507
push eax
push 0x59
push esi
call fcn.10022200
add esp, 0xc
test eax, eax
jne 0x1003464f
mov eax, dword [esi + 4]
push 0
push edi
mov ax, word [eax + 0x12c]
mov word [esi + 0x2de], ax
push dword [ebx + 0x1b0]
push dword [esi + 0x2b0]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1003453b
mov edi, str.proxy_write_failed
jmp 0x10034654
mov eax, dword [esi]
push dword [eax + 0x4c8]
push 1
push esi
call fcn.10028ae0
mov cx, word [esi + 0x2de]
add esp, 0xc
mov eax, 0x203
mov word [esi + 0x2e0], cx
mov word [esi + 0x2b4], ax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 8], 0
jne 0x100345b1
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x1e4]
push eax
call fcn.10028870
add esp, 4
test eax, eax
jne 0x100345b1
mov eax, 0x10f
push edi
mov word [esi + 0x2b4], ax
call fcn.1002a110
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 0
jne 0x10034616
cmp word [esi + 0x2b4], 0x13
je 0x100345cd
mov eax, 0x12
mov word [esi + 0x2b4], ax
mov eax, dword [esi]
push dword [eax + 0x4c8]
push 8
push esi
call fcn.10028ae0
mov eax, dword [esi + 0x2b0]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [esi]
mov dword [ebp - 4], 0x3000300
call fcn.1001cbf0
add esp, 0x14
test eax, eax
jns 0x10034606
mov edi, str.first_service_failed
jmp 0x10034654
xor ecx, ecx
test eax, eax
pop edi
cmovne esi, ecx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push esi
call fcn.10028ae0
mov eax, dword [esi + 0x24c]
add esp, 0xc
movzx eax, byte [eax + 0x16]
test eax, eax
je 0x1003468a
push 0
push 0
push dword [esi + 0x2a0]
push eax
mov eax, dword [esi + 8]
push esi
push dword [eax + 4]
call fcn.1001c4f0
add esp, 0x18
test eax, eax
jns 0x1003468a
mov edi, 0x1004a83c
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10034660
sub ecx, edx
push ecx
push edi
push esi
call fcn.10021ad0
push str.client_connect4
push 0
push esi
call fcn.10021aa0
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or dword [esi + 0x2d0], 1
mov eax, 0x119
mov word [esi + 0x2b4], ax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret