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

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x74
push 0xffffffffffffffff
push 0x66347e
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp + 0x70], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x44], esi
xor edi, edi
mov dword [ebp], edi
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x24]
call fcn.004024f0
mov ebx, 1
mov byte [ebp - 4], bl
mov ecx, esi
call fcn.005a76d0
mov eax, dword [esi + 0x19c]
cmp dword [eax + 8], 2
jne 0x589c2e
mov ecx, dword [esi + 0x32e8]
cmp ecx, edi
je 0x589c05
cmp dword [esi + 0x32ec], edi
je 0x589c2e
push ebx
lea edx, [esi + 0x32dc]
push edx
lea edx, [esi + 0x32ec]
push edx
mov edx, dword [eax + 0x16c]
push edx
mov edx, dword [eax + 0x168]
push edx
push ecx
add eax, 0xc
push eax
mov ecx, esi
call fcn.00582ff0
mov eax, dword [esi + 0x19c]
mov byte [eax + 0x134], 0
mov ecx, dword [esi + 0x19c]
cmp dword [ecx + 8], 3
jne 0x589fe7
mov eax, dword [ecx + 0x118]
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x589c54
sub eax, edi
je 0x589fe7
mov byte [ecx + 0x134], bl
lea ecx, [ebp - 0x28]
call fcn.004024f0
mov byte [ebp - 4], 2
mov eax, dword [esi + 0xcc]
test eax, eax
je 0x589c84
mov edi, dword [eax + 0xc]
jmp 0x589c8d
mov ecx, dword [esi + 0xc8]
mov edi, dword [ecx + 0x14]
test eax, eax
jne 0x589ca9
mov edx, dword [esi + 0xc8]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x14]
call fcn.004030a0
mov byte [ebp - 4], 3
mov dword [ebp], ebx
mov eax, dword [eax]
push edi
push eax
push str._s:_ld
lea ecx, [ebp - 0x28]
push ecx
call fcn.00402f60
add esp, 0x10
mov dword [ebp - 4], 2
test byte [ebp], 1
je 0x589cd7
and dword [ebp], 0xfffffffe
lea ecx, [ebp - 0x14]
call fcn.00402560
lea ecx, [ebp - 0x2c]
call fcn.004024f0
mov byte [ebp - 4], 4
mov edx, dword [esi + 0x19c]
mov eax, dword [edx + 0x130]
push eax
push str._08X
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00402f60
mov eax, dword [esi + 0x19c]
add dword [eax + 0x130], ebx
mov byte [ebp + 0x4c], 0
xor eax, eax
mov dword [ebp + 0x4d], eax
mov dword [ebp + 0x51], eax
mov dword [ebp + 0x55], eax
mov dword [ebp + 0x59], eax
mov dword [ebp + 0x5d], eax
mov dword [ebp + 0x61], eax
mov dword [ebp + 0x65], eax
mov dword [ebp + 0x69], eax
mov eax, dword [esi + 0x19c]
mov ecx, dword [eax + 0x11c]
mov edx, dword [eax + 0x118]
mov edi, dword [eax + 0x120]
mov ebx, dword [eax + 0x124]
mov dword [ebp - 0x14], ebx
lea ebx, [ebp + 4]
push ebx
push ecx
push edx
mov edx, dword [eax + 0x16c]
push edx
push edi
mov eax, dword [eax + 0x168]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0056a8a0
mov eax, dword [esi + 0x19c]
mov ecx, dword [eax + 0x128]
mov edx, dword [eax + 0x11c]
mov eax, dword [eax + 0x118]
lea edi, [ebp + 0x28]
push edi
lea edi, [ebp + 0x4c]
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
mov eax, ebx
push eax
call fcn.0056aa60
add esp, 0x4c
lea ecx, [ebp - 0x20]
call fcn.004024f0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x38]
call fcn.004024f0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x34]
call fcn.004024f0
mov byte [ebp - 4], 7
mov ecx, dword [esi + 0x19c]
mov eax, dword [ecx + 0x128]
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x589dd5
sub eax, edi
je 0x589e03
mov edx, dword [ecx + 0x11c]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ecx + 0x128]
push ecx
push str.qop_s__nc_s__cnonce__s__
lea edx, [ebp - 0x20]
push edx
call fcn.00402f60
add esp, 0x14
mov eax, dword [esi + 0x19c]
cmp byte [eax + 0x135], 0
je 0x589e31
mov ecx, dword [eax + 0x114]
push ecx
mov edx, dword [eax + 0x110]
push edx
push str.__charsetutf_8__hashed_dirs_service_name_channel_binding___service_name__s___channel_binding__s_
lea eax, [ebp - 0x34]
push eax
call fcn.00402f60
add esp, 0x10
mov edx, dword [esi + 0x19c]
mov eax, dword [edx + 0x12c]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x589e40
sub eax, edi
je 0x589e63
mov ecx, dword [edx + 0x12c]
push ecx
push str.__opaque__s_
lea edx, [ebp - 0x38]
push edx
call fcn.00402f60
add esp, 0xc
mov eax, dword [esi + 0x19c]
cmp byte [eax + 0x135], 0
je 0x589e7d
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x14], ecx
mov ebx, dword [ebp]
jmp 0x589e9c
push 0x67997c
lea ecx, [ebp - 0x1c]
call fcn.004030a0
mov byte [ebp - 4], 8
mov ebx, dword [ebp]
or ebx, 2
mov dword [ebp], ebx
mov edx, dword [eax]
mov dword [ebp - 0x14], edx
mov eax, dword [esi + 0x19c]
mov eax, dword [eax + 0x12c]
lea edx, [eax + 1]
jmp 0x589eb0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x589eb0
sub eax, edx
je 0x589ec0
mov edi, dword [ebp - 0x38]
jmp 0x589edc
push 0x67997c
lea ecx, [ebp - 0x30]
call fcn.004030a0
mov dword [ebp - 4], 9
or ebx, 4
mov dword [ebp], ebx
mov edi, dword [eax]
mov ecx, dword [esi + 0x19c]
mov eax, dword [ecx + 0x128]
lea edx, [eax + 1]
jmp 0x589ef0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x589ef0
sub eax, edx
je 0x589f00
mov ecx, dword [ebp - 0x20]
jmp 0x589f1c
push 0x67997c
lea ecx, [ebp - 0x40]
call fcn.004030a0
mov dword [ebp - 4], 0xa
or ebx, 8
mov dword [ebp], ebx
mov ecx, dword [eax]
mov eax, dword [esi + 0x19c]
mov edx, dword [ebp - 0x14]
push edx
push edi
lea edx, [ebp + 0x28]
push edx
push ecx
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [eax + 0x118]
push edx
mov ecx, dword [eax + 0x120]
push ecx
mov edx, dword [eax + 0x168]
push edx
push str.Proxy_Authorization:_Digest_username__s___realm__s___nonce__s___uri__s____sresponse__s__s_s_r_n
lea eax, [esi + 0x32dc]
push eax
call fcn.00402f60
add esp, 0x28
mov dword [ebp - 4], 9
test bl, 8
je 0x589f73
and ebx, 0xfffffff7
mov dword [ebp], ebx
lea ecx, [ebp - 0x40]
call fcn.00402560
mov dword [ebp - 4], 8
test bl, 4
je 0x589f8d
and ebx, 0xfffffffb
mov dword [ebp], ebx
lea ecx, [ebp - 0x30]
call fcn.00402560
mov dword [ebp - 4], 7
test bl, 2
je 0x589fa7
and ebx, 0xfffffffd
mov dword [ebp], ebx
lea ecx, [ebp - 0x1c]
call fcn.00402560
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x34]
call fcn.00402560
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x38]
call fcn.00402560
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x20]
call fcn.00402560
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00402560
mov ebx, 1
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x28]
call fcn.00402560
push 0x67997c
lea ecx, [ebp - 0x18]
call fcn.004030a0
mov byte [ebp - 4], 0xb
mov ecx, dword [esi + 0x19c]
cmp dword [ecx + 8], ebx
jne 0x58a01f
mov eax, dword [esi + 0x323c]
test eax, eax
je 0x58a01f
push eax
push 0x678ea8
lea edx, [ebp - 0x18]
push edx
call fcn.00402f60
add esp, 0xc
mov edx, dword [esi + 0xc8]
mov eax, dword [edx + 0x3a0]
lea edi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x58a030
sub eax, edi
je 0x58a061
mov eax, dword [esi + 0x19c]
cmp byte [eax + 0x13a], cl
je 0x58a061
mov ecx, dword [edx + 0x3a0]
push ecx
push str.Proxy_Authorization:_Basic__s_r_n
lea edx, [ebp - 0x18]
push edx
call fcn.00402f60
add esp, 0xc
mov eax, dword [esi + 0x19c]
mov eax, dword [eax + 8]
cmp eax, 2
je 0x58a074
cmp eax, 3
jne 0x58a08c
mov ecx, dword [esi + 0x32dc]
push ecx
push 0x678ea8
lea edx, [ebp - 0x18]
push edx
call fcn.00402f60
add esp, 0xc
mov eax, dword [esi + 0x32c8]
cmp dword [eax - 0xc], 0
je 0x58a0b0
mov ecx, dword [esi + 0xc8]
cmp byte [ecx + 0x1ae], 0
jne 0x58a0b0
cmp dword [esi + 0x32cc], 0
je 0x58a0c8
mov edx, dword [esi + 0x32dc]
cmp dword [edx - 0xc], 0
je 0x58a0d1
mov eax, dword [esi + 0x19c]
cmp dword [eax + 8], 2
jne 0x58a0d1
mov dword [ebp - 0x14], str.Connection:_Keep_Alive_r_n
jmp 0x58a0d8
mov dword [ebp - 0x14], 0x67997c
mov eax, dword [esi + 0xcc]
test eax, eax
je 0x58a0e7
mov ecx, dword [eax + 0xc]
jmp 0x58a0f0
mov edx, dword [esi + 0xc8]
mov ecx, dword [edx + 0x14]
mov dword [ebp - 0x20], ecx
test eax, eax
jne 0x58a110
mov edx, dword [esi + 0xc8]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x30]
call fcn.004030a0
mov byte [ebp - 4], 0xc
or dword [ebp], 0x10
mov edi, dword [eax]
mov eax, dword [esi + 0xcc]
test eax, eax
je 0x58a121
mov ebx, dword [eax + 0xc]
jmp 0x58a12a
mov ecx, dword [esi + 0xc8]
mov ebx, dword [ecx + 0x14]
test eax, eax
jne 0x58a14a
mov edx, dword [esi + 0xc8]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004030a0
mov dword [ebp - 4], 0xd
or dword [ebp], 0x20
mov eax, dword [eax]
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [esi + 0xc8]
mov edx, dword [ecx + 0x19c]
push edx
mov ecx, dword [ebp - 0x20]
push ecx
push edi
push ebx
push eax
push str.CONNECT__s:_ld_HTTP_1.1_r_nHost:__s:_ld_r_nUser_Agent:__s_r_n_s_s_r_n
lea edx, [ebp - 0x24]
push edx
call fcn.00402f60
add esp, 0x24
mov dword [ebp - 4], 0xc
mov ebx, dword [ebp]
test bl, 0x20
je 0x58a196
and ebx, 0xffffffdf
mov dword [ebp], ebx
lea ecx, [ebp - 0x1c]
call fcn.00402560
mov dword [ebp - 4], 0xb
test bl, 0x10
je 0x58a1b0
and ebx, 0xffffffef
mov dword [ebp], ebx
lea ecx, [ebp - 0x30]
call fcn.00402560
mov dword [esi + 0xa4], 0x10
mov ecx, esi
call fcn.005624d0
mov eax, dword [esi + 0x19c]
test eax, eax
je 0x58a1f8
cmp byte [eax + 0x137], 0
je 0x58a1f8
mov ecx, dword [esi + 0x3480]
test ecx, ecx
je 0x58a1f8
mov edi, dword [ebp - 0x24]
mov eax, edi
lea ebx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x58a1e6
sub eax, ebx
push eax
push edi
call fcn.005dd450
jmp 0x58a21b
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax - 0xc]
push str.send___CONNECT
push 0
push ecx
push eax
mov eax, dword [esi + 0x3200]
push eax
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.00562bc0
mov edi, eax
test edi, edi
jne 0x58a24c
cmp dword [ebp + 0x7c], eax
je 0x58a24c
push eax
mov ecx, esi
call fcn.005897c0
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00402560
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00402560
mov eax, esi
jmp 0x58a285
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00402560
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00402560
mov eax, edi
jmp 0x58a285
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
call fcn.00620b8d
add ebp, 0x74
mov esp, ebp
pop ebp
ret 4