Function at 0x422850
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x30
mov eax, dword [0x46e36c]
xor eax, esp
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x3c]
push ebx
mov ebx, dword [esp + 0x44]
push ebp
mov ebp, dword [esp + 0x3c]
push esi
mov esi, dword [esp + 0x44]
push edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], 0
mov al, byte [esi + 0xd5f]
lea edi, [esi + 0x88]
test al, al
je 0x42289a
movzx eax, al
mov byte [esi + 0xd5f], 0
jmp 0x4228ed
mov al, byte [ebp + 0x454]
test al, al
je 0x4228b0
movzx eax, al
mov byte [ebp + 0x454], 0
jmp 0x4228ed
mov ecx, dword [edi + 0x64]
mov eax, ecx
and al, 0x15
cmp al, 1
jne 0x4228c3
mov edx, dword [ebp + 0x200]
jmp 0x4228c6
or edx, 0xffffffff
and cl, 0x2a
cmp cl, 2
jne 0x4228d6
mov eax, dword [ebp + 0x204]
jmp 0x4228d9
or eax, 0xffffffff
push 0
push 0
push eax
push 0xffffffffffffffff
push edx
call fcn.0042cd50
mov ecx, dword [esp + 0x2c]
add esp, 0x14
mov dword [esp + 0x14], eax
cmp eax, 4
jne 0x42291e
push str.select_poll_returned_error
push esi
call fcn.0041d7b0
mov ebx, 0x37
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0045b78a
add esp, 0x30
ret
test byte [edi + 0x64], 1
je 0x422950
test al, 1
je 0x422950
push ebx
push ecx
lea eax, [esp + 0x18]
push eax
push edi
push ebp
push esi
call fcn.00422f70
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x422bdf
mov eax, dword [esp + 0x18]
cmp byte [eax], bl
jne 0x422bdf
mov eax, dword [edi + 0x64]
and eax, dword [esp + 0x14]
test al, 2
je 0x422974
lea eax, [esp + 0x10]
push eax
push ebp
push esi
call fcn.00423650
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x422bdf
lea eax, [esp + 0x1c]
push eax
call fcn.00412970
mov ecx, eax
add esp, 4
cmp dword [esp + 0x10], 0
movups xmm0, xmmword [ecx]
movups xmmword [esp + 0x2c], xmm0
jne 0x422a00
cmp dword [edi + 0x78], 1
jne 0x4229ed
movups xmm0, xmmword [edi + 0x68]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [ecx]
movups xmmword [eax], xmm0
call fcn.00412a20
mov ebx, eax
mov ecx, edx
mov eax, dword [esi + 0x690]
add esp, 0x20
cdq
cmp ecx, edx
jl 0x4229ed
jg 0x4229cc
cmp ebx, eax
jb 0x4229ed
or dword [edi + 0x64], 2
push 0
push esi
mov dword [edi + 0x78], 0
call fcn.0040d700
push str.Done_waiting_for_100_continue
push esi
call fcn.0041d880
add esp, 0x10
push esi
call fcn.0041d220
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x422bdf
push esi
call fcn.0042bc90
add esp, 4
test eax, eax
jne 0x422bb5
movups xmm0, xmmword [esp + 0x2c]
sub esp, 0x10
mov eax, esp
push esi
movups xmmword [eax], xmm0
call fcn.0042cee0
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x422bdf
cmp dword [edi + 0x64], eax
je 0x422b0a
push eax
lea eax, [esp + 0x30]
push eax
push esi
call fcn.0041e750
add esp, 0xc
test edx, edx
jg 0x422bcf
jl 0x422a5b
test eax, eax
jae 0x422bcf
mov ebp, dword [edi]
mov eax, ebp
mov ebx, dword [edi + 4]
and eax, ebx
mov edx, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
movups xmm0, xmmword [esi + 0x798]
cmp eax, 0xffffffff
je 0x422ac1
push ebx
push ebp
push ecx
push edx
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esp + 0x5c]
movups xmmword [eax], xmm0
call fcn.00412a20
add esp, 0x20
push edx
push eax
push str.Operation_timed_out_after__I64d_milliseconds_with__I64d_out_of__I64d_bytes_received
push esi
call fcn.0041d7b0
mov ebx, 0x1c
add esp, 0x20
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0045b78a
add esp, 0x30
ret
push ecx
push edx
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esp + 0x54]
movups xmmword [eax], xmm0
call fcn.00412a20
add esp, 0x20
push edx
push eax
push str.Operation_timed_out_after__I64d_milliseconds_with__I64d_bytes_received
push esi
call fcn.0041d7b0
mov ebx, 0x1c
add esp, 0x18
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0045b78a
add esp, 0x30
ret
cmp byte [esi + 0x154], 0
jne 0x422ba8
mov edx, dword [edi]
mov eax, edx
mov ecx, dword [edi + 4]
and eax, ecx
cmp eax, 0xffffffff
je 0x422b71
mov eax, dword [edi + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x14]
cmp dword [edi + 0x10], edx
jne 0x422b38
cmp eax, ecx
je 0x422b71
cmp dword [edi + 0x98], 0
jne 0x422b71
sub edx, dword [esp + 0x10]
sbb ecx, eax
push ecx
push edx
push str.transfer_closed_with__I64d_bytes_remaining_to_read
push esi
call fcn.0041d7b0
mov ebx, 0x12
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0045b78a
add esp, 0x30
ret
cmp byte [edi + 0xc7], 0
je 0x422ba8
cmp dword [ebp + 0x18], 4
je 0x422ba8
push str.transfer_closed_with_outstanding_read_data_remaining
push esi
call fcn.0041d7b0
mov ebx, 0x12
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0045b78a
add esp, 0x30
ret
push esi
call fcn.0042bc90
add esp, 4
test eax, eax
je 0x422bcf
mov ebx, 0x2a
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0045b78a
add esp, 0x30
ret
test dword [edi + 0x64], 0x3f
mov ecx, dword [esp + 0x18]
sete al
mov byte [ecx], al
mov ecx, dword [esp + 0x3c]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045b78a
add esp, 0x30
ret