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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62c562
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
mov eax, dword [0x6cd768]
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 1
call fcn.0059d360
mov eax, dword [esi + 0x184]
mov ebx, 2
cmp dword [eax + 8], ebx
jne 0x56e1fe
mov ecx, dword [esi + 0x32b4]
cmp ecx, edi
je 0x56e1d4
cmp dword [esi + 0x32b8], edi
je 0x56e1fe
lea edx, [esi + 0x32a8]
push 1
push edx
lea edx, [esi + 0x32b8]
push edx
mov edx, dword [eax + 0x16c]
push edx
mov edx, dword [eax + 0x168]
push edx
add eax, 0xc
push ecx
push eax
mov ecx, esi
call fcn.00577480
mov eax, dword [esi + 0x184]
mov byte [eax + 0x134], 0
mov edx, dword [esi + 0x184]
cmp dword [edx + 8], 3
jne 0x56e59e
mov edi, dword [edx + 0x118]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x56e59e
mov byte [edx + 0x134], 1
mov ecx, dword [0x6cd768]
mov dword [ebp - 0x28], ecx
mov eax, dword [esi + 0xb4]
mov byte [ebp - 4], 2
test eax, eax
je 0x56e254
mov edi, dword [eax + 0xc]
jmp 0x56e25d
mov edx, dword [esi + 0xb0]
mov edi, dword [edx + 0x14]
test eax, eax
jne 0x56e27d
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00603aaa
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 3
mov eax, dword [eax]
push edi
push eax
lea edx, [ebp - 0x28]
push str._s:_ld
push edx
call fcn.005fc86b
mov al, byte [ebp - 0x14]
add esp, 0x10
test al, 1
mov dword [ebp - 4], ebx
je 0x56e2ac
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
and al, 0xfe
mov dword [ebp - 0x14], eax
call fcn.00603a3c
mov eax, dword [0x6cd768]
mov dword [ebp - 0x2c], eax
mov ecx, dword [esi + 0x184]
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 4
mov edx, dword [ecx + 0x130]
push edx
push str._08X
push eax
call fcn.005fc86b
mov eax, dword [esi + 0x184]
add esp, 0xc
lea edi, [ebp - 0x67]
mov ecx, dword [eax + 0x130]
inc ecx
mov dword [eax + 0x130], ecx
mov cl, byte [0x6d1c98]
mov byte [ebp - 0x68], cl
mov ecx, 8
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x184]
mov ebx, dword [eax + 0x124]
mov ecx, dword [eax + 0x11c]
mov edx, dword [eax + 0x118]
mov edi, dword [eax + 0x120]
mov dword [ebp - 0x18], ebx
lea ebx, [ebp - 0x8c]
push ebx
push ecx
mov ecx, dword [ebp - 0x18]
push edx
mov edx, dword [eax + 0x16c]
mov eax, dword [eax + 0x168]
push edx
push edi
push eax
push ecx
call fcn.005551f0
mov eax, dword [esi + 0x184]
add esp, 0x1c
lea edi, [ebp - 0xb0]
mov ecx, dword [eax + 0x128]
mov edx, dword [eax + 0x11c]
push edi
lea edi, [ebp - 0x68]
mov eax, dword [eax + 0x118]
push edi
mov edi, dword [ebp - 0x28]
push edi
push str.CONNECT
push ecx
push edx
mov edx, dword [ebp - 0x2c]
push edx
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.00555350
mov eax, dword [0x6cd768]
add esp, 0x24
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], eax
mov edx, dword [esi + 0x184]
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp - 4], 7
mov edi, dword [edx + 0x128]
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x56e3d2
mov ecx, dword [edx + 0x11c]
mov eax, dword [ebp - 0x2c]
push ecx
mov ecx, dword [edx + 0x128]
push eax
push ecx
lea edx, [ebp - 0x1c]
push str.qop_s__nc_s__cnonce__s__
push edx
call fcn.005fc86b
add esp, 0x14
mov eax, dword [esi + 0x184]
mov cl, byte [eax + 0x135]
test cl, cl
je 0x56e401
mov ecx, dword [eax + 0x114]
mov edx, dword [eax + 0x110]
push ecx
push edx
lea eax, [ebp - 0x34]
push str.__charsetutf_8__hashed_dirs_service_name_channel_binding___service_name__s___channel_binding__s_
push eax
call fcn.005fc86b
add esp, 0x10
mov edx, dword [esi + 0x184]
or ecx, 0xffffffff
xor eax, eax
mov edi, dword [edx + 0x12c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x56e431
mov ecx, dword [edx + 0x12c]
lea edx, [ebp - 0x30]
push ecx
push str.__opaque__s_
push edx
call fcn.005fc86b
add esp, 0xc
mov eax, dword [esi + 0x184]
mov cl, byte [eax + 0x135]
test cl, cl
je 0x56e449
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x18], ecx
jmp 0x56e463
push 0x6d1c98
lea ecx, [ebp - 0x38]
call fcn.00603aaa
or dword [ebp - 0x14], 2
mov edx, dword [eax]
mov byte [ebp - 4], 8
mov dword [ebp - 0x18], edx
mov eax, dword [esi + 0x184]
or ecx, 0xffffffff
mov edi, dword [eax + 0x12c]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x56e480
mov ebx, dword [ebp - 0x30]
jmp 0x56e49a
push 0x6d1c98
lea ecx, [ebp - 0x3c]
call fcn.00603aaa
or dword [ebp - 0x14], 4
mov ebx, dword [eax]
mov dword [ebp - 4], 9
mov ecx, dword [esi + 0x184]
xor eax, eax
mov edi, dword [ecx + 0x128]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x56e4b7
mov ecx, dword [ebp - 0x1c]
jmp 0x56e4d1
push 0x6d1c98
lea ecx, [ebp - 0x40]
call fcn.00603aaa
or dword [ebp - 0x14], 8
mov ecx, dword [eax]
mov dword [ebp - 4], 0xa
mov edx, dword [ebp - 0x18]
mov eax, dword [esi + 0x184]
push edx
lea edx, [ebp - 0xb0]
push ebx
push edx
mov edx, dword [eax + 0x118]
push ecx
mov ecx, dword [ebp - 0x28]
push ecx
mov ecx, dword [eax + 0x120]
push edx
mov edx, dword [eax + 0x168]
push ecx
push edx
lea eax, [esi + 0x32a8]
push str.Proxy_Authorization:_Digest_username__s___realm__s___nonce__s___uri__s____sresponse__s__s_s_r_n
push eax
call fcn.005fc86b
mov ebx, dword [ebp - 0x14]
add esp, 0x28
test bl, 8
mov dword [ebp - 4], 9
je 0x56e52e
and ebx, 0xfffffff7
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x14], ebx
call fcn.00603a3c
test bl, 4
mov dword [ebp - 4], 8
je 0x56e548
and ebx, 0xfffffffb
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x14], ebx
call fcn.00603a3c
test bl, 2
mov dword [ebp - 4], 7
je 0x56e562
and ebx, 0xfffffffd
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x14], ebx
call fcn.00603a3c
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.00603a3c
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 5
call fcn.00603a3c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.00603a3c
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00603a3c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00603a3c
push 0x6d1c98
lea ecx, [ebp - 0x24]
call fcn.00603aaa
mov ecx, dword [esi + 0x184]
mov byte [ebp - 4], 0xb
cmp dword [ecx + 8], 1
jne 0x56e5d7
mov eax, dword [esi + 0x3218]
test eax, eax
je 0x56e5d7
push eax
lea edx, [ebp - 0x24]
push 0x6a10a0
push edx
call fcn.005fc86b
add esp, 0xc
mov eax, dword [esi + 0x184]
mov eax, dword [eax + 8]
cmp eax, 2
je 0x56e5ea
cmp eax, 3
jne 0x56e602
mov ecx, dword [esi + 0x32a8]
lea edx, [ebp - 0x24]
push ecx
push 0x6a10a0
push edx
call fcn.005fc86b
add esp, 0xc
mov eax, dword [esi + 0x3294]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x56e633
mov ecx, dword [esi + 0xb0]
mov dl, byte [ecx + 0x18a]
test dl, dl
sete al
test al, al
je 0x56e633
mov edx, dword [esi + 0x3298]
test edx, edx
sete al
test al, al
jne 0x56e65a
mov edx, dword [esi + 0x32a8]
mov eax, dword [edx - 8]
test eax, eax
je 0x56e651
mov eax, dword [esi + 0x184]
cmp dword [eax + 8], 2
sete al
test al, al
jne 0x56e65a
mov dword [ebp - 0x18], 0x6d1c98
jmp 0x56e661
mov dword [ebp - 0x18], str.Connection:_Keep_Alive_r_n
mov eax, dword [esi + 0xb4]
test eax, eax
je 0x56e670
mov ecx, dword [eax + 0xc]
jmp 0x56e679
mov edx, dword [esi + 0xb0]
mov ecx, dword [edx + 0x14]
test eax, eax
mov dword [ebp - 0x1c], ecx
jne 0x56e699
mov edx, dword [esi + 0xb0]
lea ecx, [ebp - 0x3c]
mov eax, dword [edx]
push eax
call fcn.00603aaa
or dword [ebp - 0x14], 0x10
mov byte [ebp - 4], 0xc
mov edi, dword [eax]
mov eax, dword [esi + 0xb4]
test eax, eax
je 0x56e6aa
mov ebx, dword [eax + 0xc]
jmp 0x56e6b3
mov ecx, dword [esi + 0xb0]
mov ebx, dword [ecx + 0x14]
test eax, eax
jne 0x56e6d3
mov edx, dword [esi + 0xb0]
lea ecx, [ebp - 0x38]
mov eax, dword [edx]
push eax
call fcn.00603aaa
or dword [ebp - 0x14], 0x20
mov dword [ebp - 4], 0xd
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x18]
mov eax, dword [eax]
push ecx
mov ecx, dword [esi + 0xb0]
push edx
mov edx, dword [ecx + 0x178]
mov ecx, dword [ebp - 0x1c]
push edx
push ecx
push edi
push ebx
push eax
lea edx, [ebp - 0x20]
push str.CONNECT__s:_ld_HTTP_1.1_r_nHost:__s:_ld_r_nUser_Agent:__s_r_n_s_s_r_n
push edx
call fcn.005fc86b
mov ebx, dword [ebp - 0x14]
add esp, 0x24
test bl, 0x20
mov dword [ebp - 4], 0xc
je 0x56e71f
and ebx, 0xffffffdf
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x14], ebx
call fcn.00603a3c
test bl, 0x10
mov dword [ebp - 4], 0xb
je 0x56e733
lea ecx, [ebp - 0x3c]
call fcn.00603a3c
mov ecx, esi
mov dword [esi + 0x8c], 0x10
call fcn.0054f6f0
mov eax, dword [esi + 0x184]
test eax, eax
je 0x56e77c
mov cl, byte [eax + 0x137]
test cl, cl
je 0x56e77c
mov edx, dword [esi + 0x3444]
test edx, edx
je 0x56e77c
mov ebx, dword [ebp - 0x20]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
mov ecx, edx
call fcn.005cd440
jmp 0x56e79f
mov eax, dword [ebp - 0x20]
push str.send___CONNECT
push 0
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esi + 0x31e0]
push eax
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.0054d360
mov edi, eax
test edi, edi
jne 0x56e7e3
mov eax, dword [ebp + 8]
test eax, eax
je 0x56e7e3
push edi
mov ecx, esi
call fcn.0056cff0
lea ecx, [ebp - 0x24]
mov esi, eax
mov byte [ebp - 4], 1
call fcn.00603a3c
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.00603a3c
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00603a3c
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.00603a3c
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4