Function at 0x42c980
Capabilities:
Check http status code

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x7c
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x64], 0
lea eax, [eax + ecx*4]
mov dword [esp + 0x48], eax
mov eax, dword [eax + 0x5d0]
cmp eax, 2
je 0x42d04c
mov ecx, dword [esp + 0x90]
mov edi, dword [esp + 0x90]
mov dword [esp + 0x58], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov ebp, dword [ecx]
mov ecx, dword [esp + 0x48]
mov ecx, dword [ecx + 0x154]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x90]
mov dword [ecx + 0x2c0], 0
lea ecx, [ebp + 0x8794]
mov dword [esp + 0x5c], ecx
lea ecx, [ebp + 0x5e4]
mov dword [esp + 0x40], ecx
test eax, eax
jne 0x42cc8f
mov eax, dword [esp + 0x9c]
mov dword [esp + 4], str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
mov dword [esp], ebp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 8], eax
call fcn.0041b5c0
mov eax, dword [ebp + 0x108]
mov dword [esp], eax
call dword [0x4ea01c]
mov dword [ebp + 0x108], 0
call fcn.004177d0
test eax, eax
mov dword [esp + 0x28], eax
je 0x42d4ee
mov eax, dword [esp + 0x9c]
mov dword [esp], str._s:_hu
mov dword [esp + 8], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 4], eax
call sym.a.exe_curl_maprintf
test eax, eax
mov esi, eax
je 0x42d569
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
mov dword [esp + 4], str.CONNECT
mov dword [esp], edi
call fcn.004173d0
mov ebx, eax
mov dword [esp], esi
call dword [0x4ea01c]
test ebx, ebx
jne 0x42d370
cmp dword [edi + 0x138], 1
mov edx, 0x4f3238
mov eax, 0x4f3234
mov ecx, 0x4f323f
cmovne eax, edx
mov edx, dword [edi + 0x284]
mov dword [esp], str._s_s_s:_hu
mov dword [esp + 0x2c], eax
mov eax, 0x4f323c
test edx, edx
mov edx, 0x4f323d
cmove edx, eax
cmovne eax, ecx
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x98]
mov dword [esp + 8], ecx
call sym.a.exe_curl_maprintf
test eax, eax
mov esi, eax
je 0x42d569
mov dword [esp + 4], str.Host:
mov dword [esp], edi
call fcn.00416cf0
test eax, eax
mov dword [esp + 0x20], 0x4f323c
je 0x42d45b
mov dword [esp + 4], str.Proxy_Connection:
mov dword [esp], edi
mov ebx, str.Proxy_Connection:_Keep_Alive_r_n
call fcn.00416cf0
mov dword [esp + 4], str.User_Agent:
test eax, eax
mov dword [esp], edi
mov eax, 0x4f323c
cmovne ebx, eax
call fcn.00416cf0
test eax, eax
mov edx, 0x4f323c
je 0x42d442
mov eax, dword [edi + 0x2f4]
mov ecx, 0x4f323c
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edx
mov dword [esp + 8], esi
mov dword [esp + 4], str.CONNECT__s_HTTP__s_r_n_s_s_s_s
test eax, eax
cmove eax, ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov dword [esp], ecx
call fcn.00417b50
mov ebx, eax
mov eax, dword [esp + 0x20]
cmp byte [eax], 0
jne 0x42d409
mov dword [esp], esi
call dword [0x4ea01c]
test ebx, ebx
je 0x42cc10
mov dword [esp + 4], str.Failed_sending_CONNECT_to_proxy
mov dword [esp], ebp
xor edi, edi
call fcn.0041b640
mov dword [esp], edi
call fcn.004177f0
mov eax, ebx
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [esp + 0x28]
mov dword [esp + 4], 1
mov dword [esp], edi
mov dword [esp + 8], esi
call fcn.00417cb0
test eax, eax
mov ebx, eax
jne 0x42cbe6
mov dword [esp + 4], 0x4f32f1
mov dword [esp], esi
call fcn.00417b50
test eax, eax
mov ebx, eax
jne 0x42cbe6
mov eax, dword [esp + 0x94]
mov dword [esp + 0xc], 0
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 8], eax
call fcn.00417820
test eax, eax
mov ebx, eax
jne 0x42cbe6
mov dword [esp], 0
call fcn.004177f0
mov eax, dword [esp + 0x48]
mov dword [eax + 0x5d0], 1
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], ebp
call fcn.004064d0
test eax, eax
jle 0x42d2b0
mov ecx, dword [esp + 0xa0]
test ecx, ecx
je 0x42d020
mov eax, dword [esp + 0x40]
mov dword [esp + 0x20], 0
xor ebx, ebx
mov dword [esp + 0x4c], 0
mov dword [esp + 0x28], 1
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], eax
lea eax, [ebp + 0xc8]
mov dword [esp + 0x54], eax
nop
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], ebp
call fcn.004064d0
test eax, eax
jle 0x42d2b0
cmp eax, 0x3e8
mov edx, 0x3e8
mov dword [esp + 8], 0xffffffff
cmovg eax, edx
mov dword [esp + 4], 0xffffffff
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.0040c5d0
cmp eax, 0xffffffff
je 0x42cfa0
test eax, eax
je 0x42ce20
lea eax, [esp + 0x68]
mov dword [esp], edi
mov dword [esp + 0x10], eax
mov eax, 0x4000
sub eax, dword [esp + 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
call fcn.0041b350
cmp eax, 0x51
je 0x42cfd0
test eax, eax
jne 0x42cfc0
mov eax, dword [esp + 0x68]
test eax, eax
mov dword [esp + 0x44], eax
jle 0x42cfe0
cmp dword [esp + 0x28], 1
je 0x42d060
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov ecx, edx
or ecx, eax
je 0x42d2d0
mov eax, dword [esp + 0x44]
cdq
sub dword [esp + 0x38], eax
sbb dword [esp + 0x3c], edx
cmp dword [esp + 0x3c], 0
jl 0x42ce01
jle 0x42cdfa
mov eax, dword [esp + 0x40]
mov dword [esp], edi
xor esi, esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x2c], eax
call fcn.004139a0
test eax, eax
je 0x42ce2e
add esp, 0x7c
mov eax, 0x2a
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [esp + 0x38], 0
ja 0x42cdcf
mov eax, dword [esp + 0x40]
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x2c], eax
lea esi, [esi]
xor esi, esi
mov dword [esp], edi
call fcn.004139a0
test eax, eax
jne 0x42cded
cmp dword [esp + 0x20], 0x3fff
ja 0x42ce48
mov eax, dword [esp + 0x28]
test eax, eax
je 0x42ce48
test esi, esi
je 0x42ccf0
test esi, esi
jne 0x42cf8c
cmp dword [ebp + 0x8780], 0xc8
je 0x42ce76
mov dword [esp], edi
call fcn.00417190
test eax, eax
jne 0x42cc02
mov esi, dword [edi + 0x26c]
test esi, esi
jne 0x42cee0
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x42cee0
mov ecx, dword [ebp + 0x108]
test ecx, ecx
je 0x42ceee
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 0x5d0]
cmp eax, 2
jne 0x42ca0e
mov ebx, dword [esp + 0x48]
mov dword [ebx + 0x5d0], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.TUNNEL_STATE_switched_to:__d_n
mov dword [esp], ebp
call fcn.0041b5c0
mov edx, dword [ebp + 0x108]
test edx, edx
je 0x42ceee
mov eax, dword [ebx + 0x5d0]
jmp 0x42ca0e
mov ebx, dword [ebp + 0x108]
test ebx, ebx
jne 0x42d665
cmp dword [ebp + 0xc8], 0xc8
je 0x42d4f8
mov eax, dword [ebp + 0x108]
mov dword [esp], eax
call dword [0x4ea01c]
mov eax, dword [esp + 0x90]
mov ebx, dword [esp + 0x48]
mov dword [ebp + 0x108], 0
mov dword [eax + 0x26c], 1
mov eax, dword [ebx + 0x154]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x90]
mov dword [esp], eax
call fcn.00406c30
mov dword [ebx + 0x154], 0xffffffff
mov eax, dword [esp + 0x48]
mov dword [eax + 0x5d0], 0
mov eax, dword [esp + 0x90]
mov eax, dword [eax + 0x2c0]
test eax, eax
jne 0x42d04c
mov eax, dword [ebp + 0xc8]
mov dword [esp + 4], str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov dword [esp], ebp
mov dword [esp + 8], eax
call fcn.0041b640
mov eax, 0x38
jmp 0x42cc02
mov dword [esp + 4], str.Proxy_CONNECT_aborted_due_to_select_poll_error
mov dword [esp], ebp
mov esi, 1
call fcn.0041b640
jmp 0x42ce22
mov dword [esp + 0x28], 0
xor esi, esi
jmp 0x42ce22
xor esi, esi
jmp 0x42ce2e
mov edx, dword [ebp + 0x150]
test edx, edx
je 0x42cff8
mov eax, dword [ebp + 0x86cc]
test eax, eax
jne 0x42d3e0
mov dword [esp + 4], str.Proxy_CONNECT_aborted
mov dword [esp], ebp
mov esi, 1
call fcn.0041b640
mov dword [esp + 0x28], 0
jmp 0x42ce22
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call fcn.0040c5d0
test eax, eax
jne 0x42ccbe
xor eax, eax
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [esp + 0x2c]
xor eax, eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x90], edi
mov edi, eax
add esi, 1
mov ebp, esi
mov esi, dword [esp + 0x34]
jmp 0x42d090
add edi, 1
add ebp, 1
cmp dword [esp + 0x68], edi
jle 0x42d1d1
add ebx, 1
cmp byte [ebp - 1], 0xa
mov dword [esp + 0x2c], ebp
jne 0x42d080
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x324]
test eax, eax
jne 0x42d280
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x90]
cmp dword [eax + 0x308], 1
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp], edx
sbb eax, eax
add eax, 3
mov dword [esp + 4], eax
call fcn.0041bb40
mov ecx, dword [esp + 0x30]
add dword [ecx + 0x8790], ebx
add dword [ecx + 0x80], ebx
test eax, eax
jne 0x42cc02
movzx eax, byte [esi]
cmp al, 0xd
je 0x42d4a0
cmp al, 0xa
je 0x42d4a0
add ebx, esi
movzx eax, byte [ebx]
mov byte [ebx], 0
mov dword [esp + 8], 0x11
mov dword [esp + 4], esi
mov dword [esp], str.WWW_Authenticate:
mov byte [esp + 0x34], al
call fcn.0042b1a0
test eax, eax
je 0x42d142
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0xc8]
cmp eax, 0x191
je 0x42d1f0
mov dword [esp + 8], 0x13
mov dword [esp + 4], esi
mov dword [esp], str.Proxy_authenticate:
call fcn.0042b1a0
test eax, eax
je 0x42d173
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0xc8]
cmp eax, 0x197
je 0x42d1f0
mov dword [esp + 8], 0xf
mov dword [esp + 4], esi
mov dword [esp], str.Content_Length:
call fcn.0042b1a0
test eax, eax
je 0x42d250
add esi, 0xf
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.00442fb0
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
movzx eax, byte [esp + 0x34]
mov esi, ebp
add edi, 1
add ebp, 1
mov byte [ebx], al
xor ebx, ebx
cmp dword [esp + 0x68], edi
jg 0x42d090
mov dword [esp + 0x34], esi
mov ecx, dword [esp + 0x44]
xor esi, esi
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x90]
add dword [esp + 0x20], ecx
jmp 0x42ce22
cmp eax, 0x197
mov dword [esp], esi
sete al
movzx eax, al
mov dword [esp + 0x50], eax
call fcn.00417080
test eax, eax
mov esi, eax
je 0x42d4ee
mov dword [esp + 8], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x90]
mov dword [esp], eax
call fcn.00417530
mov dword [esp], esi
mov dword [esp + 0x50], eax
call dword [0x4ea01c]
mov eax, dword [esp + 0x50]
test eax, eax
je 0x42d1b6
jmp 0x42cc02
mov dword [esp + 8], str.close
mov dword [esp + 4], str.Connection:
mov dword [esp], esi
call fcn.00417bc0
test eax, eax
je 0x42d320
mov dword [esp + 0x4c], 1
jmp 0x42d1b6
mov eax, dword [esp + 0x90]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], 1
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.0041b4c0
jmp 0x42d0af
mov dword [esp], ebp
mov dword [esp + 4], str.Proxy_CONNECT_aborted_due_to_timeout
call fcn.0041b640
add esp, 0x7c
mov eax, 0x38
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x6c]
mov dword [esp], edi
mov dword [esp + 0x6c], 0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
call fcn.00427ce0
cmp eax, 0xffffffff
je 0x42d417
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.0041b5c0
jmp 0x42cdcf
mov dword [esp + 8], str.chunked
mov dword [esp + 4], str.Transfer_Encoding:
mov dword [esp], esi
call fcn.00417bc0
test eax, eax
je 0x42d379
mov eax, dword [esp + 0x30]
mov dword [esp + 4], str.CONNECT_responded_chunked_n
mov dword [esp], eax
call fcn.0041b5c0
mov eax, dword [esp + 0x90]
mov dword [esp], eax
call fcn.00427cc0
mov dword [esp + 0x58], 1
jmp 0x42d1b6
mov edi, dword [esp + 0x28]
jmp 0x42cbf8
mov dword [esp + 8], str.close
mov dword [esp + 4], str.Proxy_Connection:
mov dword [esp], esi
call fcn.00417bc0
test eax, eax
jne 0x42d270
mov eax, dword [esp + 0x54]
mov dword [esp + 4], str.HTTP_1._d__d
mov dword [esp], esi
mov dword [esp + 0xc], eax
lea eax, [esp + 0x64]
mov dword [esp + 8], eax
call sub.msvcrt.dll_sscanf
cmp eax, 2
jne 0x42d1b6
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 0xc8]
mov dword [ecx + 0x8780], eax
jmp 0x42d1b6
mov dword [edi + 0x2c0], 1
mov dword [esp + 4], str.Proxy_CONNECT_connection_closed_n
xor esi, esi
mov dword [esp], ebp
call fcn.0041b5c0
mov dword [esp + 0x28], 0
jmp 0x42ce22
mov dword [esp], eax
call dword [0x4ea01c]
jmp 0x42cbd9
mov dword [esp + 4], str.chunk_reading_DONE_n
mov dword [esp], ebp
call fcn.0041b5c0
mov eax, dword [esp + 0x48]
mov dword [esp + 0x28], 0
mov dword [eax + 0x5d0], 2
jmp 0x42cdcf
mov eax, dword [ebp + 0x3ec]
test eax, eax
je 0x42cb86
mov edx, dword [edi + 0x2f8]
jmp 0x42cb86
mov dword [esp + 4], esi
mov dword [esp], str.Host:__s_r_n
call sym.a.exe_curl_maprintf
test eax, eax
mov dword [esp + 0x20], eax
jne 0x42cb4a
mov edi, dword [esp + 0x28]
mov dword [esp], esi
call dword [0x4ea01c]
mov dword [esp], edi
call fcn.004177f0
mov eax, 0x1b
jmp 0x42cc02
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x20], edi
mov dword [esp + 0x34], esi
mov edi, dword [esp + 0x90]
cmp dword [ebp + 0xc8], 0x197
je 0x42d57f
cmp dword [ebp + 0x8780], 0xc8
mov dword [esp + 0x28], 0
je 0x42d63c
mov eax, dword [esp + 0x48]
mov dword [eax + 0x5d0], 2
jmp 0x42cdcf
mov eax, 0x1b
jmp 0x42cc02
mov eax, dword [esp + 0x48]
mov dword [eax + 0x5d0], 2
mov eax, dword [esp + 0x90]
mov eax, dword [eax + 0x2f4]
mov dword [esp], eax
call dword [0x4ea01c]
mov eax, dword [esp + 0x90]
mov dword [eax + 0x2f4], 0
mov dword [ebp + 0x86d0], 1
mov dword [esp + 4], str.Proxy_replied_OK_to_CONNECT_request_n
mov dword [esp], ebp
call fcn.0041b5c0
mov eax, dword [esp + 0x90]
mov dword [ebp + 0xfc], 0
mov dword [eax + 0x2a8], 0
xor eax, eax
jmp 0x42d04e
mov edi, dword [esp + 0x28]
mov dword [esp], edi
call fcn.004177f0
mov eax, 0x1b
jmp 0x42cc02
mov eax, dword [ebp + 0x86dc]
test eax, eax
jne 0x42d4c3
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov ecx, edx
or ecx, eax
jne 0x42d6d0
mov eax, dword [esp + 0x58]
mov dword [esp + 0x28], 0
test eax, eax
je 0x42d4db
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x20]
mov dword [ebp + 0xfc], 1
mov dword [esp + 4], str._zd_bytes_of_chunk_left_n
mov dword [esp], ebp
mov dword [esp + 8], eax
call fcn.0041b5c0
mov eax, dword [esp + 0x34]
cmp byte [eax + 1], 0xa
je 0x42d73b
lea eax, [esp + 0x68]
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x20]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
add eax, 1
mov dword [esp + 4], eax
call fcn.00427ce0
cmp eax, 0xffffffff
je 0x42d71e
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.0041b5c0
mov dword [esp + 0x28], 2
jmp 0x42d4db
mov eax, dword [esp + 0x20]
not eax
add eax, dword [esp + 0x68]
je 0x42d4db
mov dword [esp + 8], eax
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.0041b640
jmp 0x42d4db
mov ebx, dword [esp + 0x48]
mov eax, dword [ebx + 0x154]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x90]
mov dword [esp], eax
call fcn.00406c30
mov dword [ebx + 0x154], 0xffffffff
cmp dword [ebp + 0xc8], 0xc8
je 0x42d4f8
mov eax, dword [ebp + 0x108]
test eax, eax
je 0x42cf04
mov eax, dword [esp + 0x90]
mov dword [eax + 0x2c0], 1
mov dword [esp + 4], str.Connect_me_again_please_n
mov dword [esp], ebp
call fcn.0041b5c0
jmp 0x42cf4f
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], str.Ignore__I64d_bytes_of_response_body_n
mov dword [esp], ebp
call fcn.0041b5c0
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x20]
cdq
sub dword [esp + 0x38], eax
sbb dword [esp + 0x3c], edx
cmp dword [esp + 0x3c], 0
jl 0x42d711
jg 0x42d62f
cmp dword [esp + 0x38], 0
ja 0x42d62f
mov dword [esp + 0x28], 0
jmp 0x42d4db
mov dword [esp + 4], str.chunk_reading_DONE_n
mov dword [esp], ebp
call fcn.0041b5c0
mov dword [esp + 0x28], 0
jmp 0x42d4db
add dword [esp + 0x34], 1
add dword [esp + 0x20], 1
jmp 0x42d5e7