Function at 0x43dde0
Capabilities:
Check http status code

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x7c
mov esi, dword [esp + 0x90]
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x64], 0
mov edi, dword [esi]
mov dword [esp + 0x5c], eax
mov eax, dword [edi + 0x210]
mov edx, eax
test eax, eax
mov eax, 0x36ee80
cmovne eax, edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x94]
lea eax, [esi + eax*4]
mov edx, dword [eax + 0x138]
mov dword [esp + 0x50], eax
mov eax, dword [eax + 0x484]
mov dword [esp + 0x2c], edx
cmp eax, 2
je 0x43e572
lea edx, [edi + 0x5d4]
mov ebp, edi
mov dword [esi + 0x200], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], edx
test eax, eax
je 0x43e5f7
mov eax, dword [esp + 0x48]
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [ebp + 0xc8]
mov dword [esp + 0x54], eax
test ebx, ebx
jne 0x43e00c
mov eax, dword [esp + 0x28]
test eax, eax
je 0x43e00c
call fcn.00420e30
mov ecx, dword [esi + 0x128]
mov ebx, dword [esi + 0x12c]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00420e60
mov ecx, dword [esp + 0x38]
sub ecx, eax
test ecx, ecx
jle 0x43e3b0
mov eax, dword [esp + 0x2c]
cmp ecx, 0x3e8
mov edx, 0x3e8
cmovle edx, ecx
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call fcn.00413ef0
cmp eax, 0xffffffff
je 0x43e140
test eax, eax
je 0x43dff0
lea eax, [esp + 0x68]
mov dword [esp + 0x10], eax
mov eax, 0x4000
sub eax, dword [esp + 0x24]
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
call fcn.004162a0
cmp eax, 0x51
je 0x43e170
test eax, eax
jne 0x43e160
mov eax, dword [esp + 0x68]
test eax, eax
jle 0x43e177
add dword [esp + 0x24], eax
cmp dword [esp + 0x28], 1
jle 0x43e1c6
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov ebx, ecx
or ebx, edx
je 0x43e3d4
cdq
sub dword [esp + 0x40], eax
sbb dword [esp + 0x44], edx
cmp dword [esp + 0x44], 0
jl 0x43e482
jle 0x43e477
mov eax, dword [esp + 0x48]
xor ebx, ebx
mov dword [esp], esi
mov dword [esp + 0x24], 0
mov dword [esp + 0x34], eax
call fcn.004240f0
test eax, eax
je 0x43dffe
mov dword [esp + 0x24], 0x2a
mov eax, dword [esp + 0x24]
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [esp + 0x90]
lea esi, [esi]
xor ebx, ebx
mov dword [esp], esi
call fcn.004240f0
test eax, eax
jne 0x43dfd1
cmp dword [esp + 0x24], 0x3fff
jbe 0x43dea8
test ebx, ebx
jne 0x43e0c6
cmp dword [ebp + 0x8718], 0xc8
je 0x43e0d3
mov dword [esp], esi
call fcn.004268b0
test eax, eax
jne 0x43e343
mov eax, dword [esi + 0x1a8]
test eax, eax
je 0x43e0d3
mov edi, ebp
mov dword [esp + 0x4c], 1
mov ebp, dword [edi + 0x140]
test ebp, ebp
jne 0x43e949
mov eax, dword [edi + 0xc8]
cmp eax, 0xc8
je 0x43e7fd
mov dword [esp + 8], eax
mov dword [esp + 4], str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov dword [esp], edi
call fcn.00416580
mov edx, dword [esp + 0x4c]
test edx, edx
je 0x43e09b
mov eax, dword [edi + 0x140]
test eax, eax
je 0x43e0b8
mov dword [esi + 0x200], 1
mov eax, dword [edi + 0x140]
test eax, eax
je 0x43e0b8
mov dword [esp], eax
call dword [0x451010]
mov dword [edi + 0x140], 0
mov eax, dword [esp + 0x50]
mov dword [eax + 0x484], 0
mov dword [esp + 0x24], 0x38
jmp 0x43e3c8
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x43e470
mov ebx, dword [ebp + 0x140]
test ebx, ebx
je 0x43ea2f
mov eax, dword [esp + 0x50]
mov eax, dword [eax + 0x484]
cmp eax, 2
jne 0x43de6e
mov edi, dword [esp + 0x50]
mov dword [edi + 0x484], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.TUNNEL_STATE_switched_to:__d_n
mov dword [esp], ebp
call fcn.00416500
mov ecx, dword [ebp + 0x140]
test ecx, ecx
je 0x43ea2f
mov eax, dword [edi + 0x484]
jmp 0x43de6e
mov dword [esp + 4], str.Proxy_CONNECT_aborted_due_to_select_poll_error
mov ebx, 1
mov dword [esp], ebp
call fcn.00416580
jmp 0x43dff2
mov dword [esp + 0x28], 0
xor ebx, ebx
jmp 0x43dff2
xor ebx, ebx
jmp 0x43dffe
mov ecx, dword [ebp + 0x188]
test ecx, ecx
je 0x43e1a4
mov edx, dword [ebp + 0x8674]
test edx, edx
je 0x43e1a4
mov dword [esi + 0x200], 1
xor ebx, ebx
mov dword [esp + 0x28], 0
jmp 0x43dff2
mov dword [esp + 4], str.Proxy_CONNECT_aborted
mov ebx, 1
mov dword [esp], ebp
call fcn.00416580
mov dword [esp + 0x28], 0
jmp 0x43dff2
mov ebx, dword [esp + 0x34]
xor eax, eax
mov dword [esp + 0x90], esi
mov esi, eax
add ebx, 1
jmp 0x43e1f0
add esi, 1
add ebx, 1
cmp dword [esp + 0x68], esi
jle 0x43dfe5
add edi, 1
cmp byte [ebx - 1], 0xa
mov dword [esp + 0x34], ebx
jne 0x43e1e0
mov eax, dword [ebp + 0x34c]
test eax, eax
jne 0x43e381
cmp dword [ebp + 0x330], 1
mov edx, dword [esp + 0x30]
mov dword [esp + 0xc], edi
sbb eax, eax
add eax, 3
mov dword [esp + 4], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 8], edx
mov dword [esp], eax
call fcn.004167f0
add dword [ebp + 0x8728], edi
add dword [ebp + 0x80], edi
test eax, eax
jne 0x43e343
mov edx, dword [esp + 0x30]
movzx eax, byte [edx]
cmp al, 0xa
je 0x43e5b1
cmp al, 0xd
je 0x43e5b1
mov edx, dword [esp + 0x30]
add edi, edx
movzx eax, byte [edi]
mov byte [edi], 0
mov dword [esp + 8], 0x11
mov dword [esp + 4], edx
mov dword [esp], str.WWW_Authenticate:
mov byte [esp + 0x3f], al
call fcn.00410730
test eax, eax
je 0x43e29e
mov eax, dword [ebp + 0xc8]
cmp eax, 0x191
je 0x43e324
mov eax, dword [esp + 0x30]
mov dword [esp + 8], 0x13
mov dword [esp], str.Proxy_authenticate:
mov dword [esp + 4], eax
call fcn.00410730
test eax, eax
je 0x43e2cb
mov eax, dword [ebp + 0xc8]
cmp eax, 0x197
je 0x43e324
mov eax, dword [esp + 0x30]
mov dword [esp + 8], 0xf
mov dword [esp], str.Content_Length:
mov dword [esp + 4], eax
call fcn.00410730
test eax, eax
je 0x43e353
mov eax, dword [esp + 0x30]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
add eax, 0xf
mov dword [esp], eax
call fcn.0044be60
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
movzx eax, byte [esp + 0x3f]
mov dword [esp + 0x30], ebx
mov byte [edi], al
xor edi, edi
jmp 0x43e1e0
mov edx, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 8], edx
mov dword [esp], eax
call fcn.00426da0
test eax, eax
je 0x43e312
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
mov dword [esp + 8], str.close
mov dword [esp + 4], str.Connection:
mov dword [esp], eax
call fcn.004272f0
test eax, eax
je 0x43e420
mov dword [esp + 0x4c], 1
jmp 0x43e312
mov eax, dword [esp + 0x90]
mov dword [esp + 0xc], edi
mov dword [esp + 4], 1
mov dword [esp], ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 8], eax
call fcn.00416400
jmp 0x43e20b
mov dword [esp + 4], str.Proxy_CONNECT_aborted_due_to_timeout
mov dword [esp], ebp
call fcn.00416580
mov dword [esp + 0x24], 0x38
mov eax, dword [esp + 0x24]
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], eax
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x6c]
mov dword [esp + 0xc], edx
mov dword [esp], esi
mov dword [esp + 0x6c], 0
mov dword [esp + 4], eax
call fcn.00442b60
cmp eax, 0xffffffff
je 0x43e586
mov eax, dword [esp + 0x6c]
mov dword [esp + 4], str.Read__zd_bytes_of_chunk__continue_n
mov dword [esp], ebp
mov dword [esp + 8], eax
call fcn.00416500
jmp 0x43dfb3
mov eax, dword [esp + 0x30]
mov dword [esp + 8], str.chunked
mov dword [esp + 4], str.Transfer_Encoding:
mov dword [esp], eax
call fcn.004272f0
test eax, eax
je 0x43e4a1
mov dword [esp + 4], str.CONNECT_responded_chunked_n
mov dword [esp], ebp
call fcn.00416500
mov eax, dword [esp + 0x90]
mov dword [esp], eax
call fcn.00442b40
mov dword [esp + 0x58], 1
jmp 0x43e312
mov edi, ebp
jmp 0x43e04c
cmp dword [esp + 0x40], 0
ja 0x43dfb3
mov eax, dword [esp + 0x48]
xor ebx, ebx
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x34], eax
jmp 0x43dff2
mov eax, dword [esp + 0x30]
mov dword [esp + 8], str.close
mov dword [esp + 4], str.Proxy_Connection:
mov dword [esp], eax
call fcn.004272f0
test eax, eax
jne 0x43e377
mov eax, dword [esp + 0x54]
mov dword [esp + 4], str.HTTP_1._d__d
mov dword [esp + 0xc], eax
lea eax, [esp + 0x64]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call sub.msvcrt.dll_sscanf
cmp eax, 2
jne 0x43e312
mov eax, dword [ebp + 0xc8]
mov dword [ebp + 0x8718], eax
jmp 0x43e312
mov ebx, dword [esp + 0x28]
mov dword [esp], esi
mov dword [esp + 4], ebx
call fcn.00427480
test eax, eax
jne 0x43e7e4
mov dword [esp + 4], 0x46c885
mov dword [esp], ebx
call fcn.00427270
test eax, eax
jne 0x43e7e4
mov eax, dword [esp + 0x94]
mov dword [esp + 0xc], 0
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x10], eax
lea eax, [edi + 0x872c]
mov dword [esp + 8], eax
call fcn.00426f80
test eax, eax
jne 0x43e7e4
mov eax, dword [esp + 0x50]
mov dword [eax + 0x484], 1
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x24]
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.chunk_reading_DONE_n
mov dword [esp], ebp
call fcn.00416500
mov eax, dword [esp + 0x50]
mov dword [esp + 0x28], 0
mov dword [eax + 0x484], 2
jmp 0x43dfb3
cmp dword [ebp + 0xc8], 0x197
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x90]
je 0x43e863
cmp dword [ebp + 0x8718], 0xc8
mov dword [esp + 0x28], 0
je 0x43e920
mov eax, dword [esp + 0x50]
mov dword [eax + 0x484], 2
jmp 0x43dfb3
mov eax, dword [esp + 0x98]
mov edi, ebp
movzx ebx, word [esp + 0x5c]
mov dword [esp + 4], str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
mov dword [esp], ebp
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call fcn.00416500
mov eax, dword [ebp + 0x140]
test eax, eax
je 0x43e63a
mov dword [esp], eax
call dword [0x451010]
mov dword [ebp + 0x140], 0
call fcn.00426f60
mov dword [esp + 0x24], 0x1b
test eax, eax
mov dword [esp + 0x28], eax
je 0x43e3c8
mov eax, dword [esp + 0x98]
mov dword [esp + 8], ebx
mov dword [esp], str._s:_hu
mov dword [esp + 4], eax
call sym.curl.exe_curl_maprintf
test eax, eax
mov ebp, eax
je 0x43e9a7
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
mov dword [esp + 4], str.CONNECT
mov dword [esp], esi
call fcn.00426a90
mov dword [esp], ebp
mov dword [esp + 0x2c], eax
call dword [0x451010]
mov ebp, dword [esp + 0x2c]
test ebp, ebp
jne 0x43e96e
cmp dword [esi + 0x11c], 1
mov edx, 0x46c7c8
mov ecx, dword [esi + 0x1c0]
mov eax, 0x46c7cc
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x98]
cmove eax, edx
mov edx, 0x46c7d4
mov dword [esp + 0x2c], eax
mov eax, 0x46c7d0
test ecx, ecx
cmove eax, edx
mov ecx, eax
mov eax, 0x46c7d2
cmove eax, edx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], str._s_s_s:_hu
call sym.curl.exe_curl_maprintf
test eax, eax
mov ebp, eax
je 0x43e9a7
mov dword [esp + 4], str.Host:
mov ebx, 0x46c7d4
mov dword [esp], edi
call fcn.00426850
test eax, eax
je 0x43e984
mov dword [esp + 4], str.Proxy_Connection:
mov dword [esp], edi
call fcn.00426850
mov ecx, 0x46c7d4
mov dword [esp + 4], str.User_Agent:
mov dword [esp], edi
test eax, eax
mov eax, str.Proxy_Connection:_Keep_Alive_r_n
cmove ecx, eax
mov dword [esp + 0x24], ecx
call fcn.00426850
mov edx, 0x46c7d4
mov ecx, dword [esp + 0x24]
test eax, eax
je 0x43ea16
cmp dword [esi + 0x230], 0
mov eax, 0x46c7d4
cmovne eax, dword [esi + 0x230]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], ebx
mov dword [esp + 8], ebp
mov dword [esp + 4], str.CONNECT__s_HTTP__s_r_n_s_s_s_s
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.00427270
cmp byte [ebx], 0
je 0x43e7cb
mov dword [esp + 0x24], eax
mov dword [esp], ebx
call dword [0x451010]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x24], eax
mov dword [esp], ebp
call dword [0x451010]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x43e503
mov dword [esp + 4], str.Failed_sending_CONNECT_to_proxy
mov dword [esp], edi
mov dword [esp + 0x24], eax
call fcn.00416580
jmp 0x43e3c8
mov eax, dword [esp + 0x50]
mov dword [eax + 0x484], 2
mov eax, dword [esi + 0x230]
test eax, eax
je 0x43e81e
mov dword [esp], eax
call dword [0x451010]
mov dword [esi + 0x230], 0
mov dword [edi + 0x8678], 1
mov dword [esp + 4], str.Proxy_replied_OK_to_CONNECT_request_n
mov dword [esp], edi
call fcn.00416500
mov dword [edi + 0x134], 0
mov dword [esp + 0x24], 0
mov dword [esi + 0x1e4], 0
jmp 0x43e3c8
mov eax, dword [ebp + 0x8684]
test eax, eax
jne 0x43e5cc
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov ebx, edx
or ebx, eax
jne 0x43e9b9
mov eax, dword [esp + 0x58]
mov dword [esp + 0x28], 0
test eax, eax
je 0x43e5e4
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x24]
mov dword [ebp + 0x134], 1
mov dword [esp + 4], str._zd_bytes_of_chunk_left_n
mov dword [esp + 8], eax
mov dword [esp], ebp
call fcn.00416500
mov eax, dword [esp + 0x30]
cmp byte [eax + 1], 0xa
je 0x43ea07
lea eax, [esp + 0x68]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x24]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
add eax, 1
mov dword [esp + 4], eax
call fcn.00442b60
cmp eax, 0xffffffff
je 0x43ea36
mov eax, dword [esp + 0x68]
mov dword [esp + 4], str.Read__zd_bytes_of_chunk__continue_n
mov dword [esp], ebp
mov dword [esp + 8], eax
call fcn.00416500
mov dword [esp + 0x28], 2
jmp 0x43e5e4
mov ebx, dword [esp + 0x24]
not ebx
add ebx, dword [esp + 0x68]
je 0x43e5e4
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Proxy_CONNECT_followed_by__zd_bytes_of_opaque_data._Data_ignored__known_bug_39_
mov dword [esp], ebp
call fcn.00416580
jmp 0x43e5e4
mov ebx, dword [esp + 0x50]
mov eax, dword [ebx + 0x138]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00414ea0
mov dword [ebx + 0x138], 0xffffffff
jmp 0x43e05a
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call dword [0x451010]
mov eax, dword [esp + 0x2c]
jmp 0x43e343
mov dword [esp + 4], ebp
mov dword [esp], str.Host:__s_r_n
call sym.curl.exe_curl_maprintf
test eax, eax
mov ebx, eax
jne 0x43e72e
mov dword [esp], ebp
call dword [0x451010]
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call dword [0x451010]
jmp 0x43e3c8
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], str.Ignore__lld_bytes_of_response_body_n
mov dword [esp], ebp
call fcn.00416500
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x24]
cdq
sub dword [esp + 0x40], eax
sbb dword [esp + 0x44], edx
cmp dword [esp + 0x44], 0
jl 0x43e9fa
jg 0x43e913
cmp dword [esp + 0x40], 0
ja 0x43e913
mov dword [esp + 0x28], 0
jmp 0x43e5e4
add dword [esp + 0x30], 1
add dword [esp + 0x24], 1
jmp 0x43e8cb
mov eax, dword [edi + 0x40c]
test eax, eax
je 0x43e772
mov edx, dword [esi + 0x234]
jmp 0x43e772
mov edi, ebp
jmp 0x43e05a
mov dword [esp + 4], str.chunk_reading_DONE_n
mov dword [esp], ebp
call fcn.00416500
mov dword [esp + 0x28], 0
jmp 0x43e5e4