Function at 0x4b7db0
Capabilities:
Check http status code

Disassembly:
sub esp, 0x30
mov ecx, dword [esp + 0x38]
xor al, al
push ebx
push ebp
mov ebp, dword [esp + 0x3c]
xor bl, bl
mov byte [esp + 0xa], al
lea eax, [ecx*4 + 0x518]
add eax, ebp
mov dword [esp + 0x34], 0
push esi
mov esi, dword [ebp]
push edi
cmp dword [eax], 2
mov edi, dword [ebp + ecx*4 + 0x144]
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], 0
mov byte [esp + 0x11], bl
mov dword [esp + 0x2c], 0
mov dword [esp + 0x14], eax
je 0x4b87da
mov byte [ebp + 0x246], bl
cmp dword [eax], 0
mov ebx, dword [esp + 0x50]
jne 0x4b804e
push ebx
push dword [esp + 0x50]
push 0x4e2f78
push esi
call fcn.004a9320
push dword [esi + 0xe0]
call dword [0x6fb5a4]
add esp, 0x14
mov dword [esi + 0xe0], 0
call fcn.004afd70
mov ebp, eax
test ebp, ebp
je 0x4b869d
push ebx
push dword [esp + 0x50]
push str._s:_hu
call fcn.004b8990
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4b8693
mov eax, dword [esp + 0x44]
push 1
push ebx
push str.CONNECT
push eax
call fcn.004b08e0
push ebx
mov edi, eax
call dword [0x6fb5a4]
add esp, 0x14
test edi, edi
jne 0x4b802a
mov eax, dword [esp + 0x44]
mov edi, 0x4d0c7c
mov dword [esp + 0x34], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], edi
cmp dword [eax + 0x128], 1
mov dword [esp + 0x18], 0x4e1618
je 0x4b7ec2
mov dword [esp + 0x18], 0x4e1614
mov al, byte [eax + 0x236]
mov ecx, 0x4d0130
test al, al
jne 0x4b7f76
mov ecx, 0x4d0c7c
mov eax, ecx
push dword [esp + 0x50]
push ecx
push dword [esp + 0x54]
push eax
push str._s_s_s:_hu
call fcn.004b8990
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x4b8693
mov eax, dword [esp + 0x44]
push str.Host:
push eax
call fcn.004b02b0
add esp, 8
test eax, eax
jne 0x4b7f2f
push ebx
push str.Host:__s_r_n
call fcn.004b8990
mov edi, eax
add esp, 8
mov dword [esp + 0x34], edi
test edi, edi
je 0x4b866b
push str.Proxy_Connection:
push dword [esp + 0x48]
call fcn.004b02b0
add esp, 8
test eax, eax
jne 0x4b7f4c
mov dword [esp + 0x20], str.Proxy_Connection:_Keep_Alive_r_n
push str.User_Agent:
push dword [esp + 0x48]
call fcn.004b02b0
add esp, 8
test eax, eax
mov eax, dword [esp + 0x44]
jne 0x4b7f80
cmp dword [esi + 0x318], 0
je 0x4b7f80
mov ecx, dword [eax + 0x274]
jmp 0x4b7f84
mov eax, 0x4d012c
jmp 0x4b7edc
mov ecx, dword [esp + 0x28]
mov eax, dword [eax + 0x270]
test eax, eax
jne 0x4b7f93
mov eax, 0x4d0c7c
push dword [esp + 0x20]
push ecx
push eax
push edi
push dword [esp + 0x28]
push ebx
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push ebp
call fcn.004aff30
mov edi, eax
add esp, 0x20
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4b7fc6
cmp byte [eax], 0
je 0x4b7fc6
push eax
call dword [0x6fb5a4]
add esp, 4
push ebx
call dword [0x6fb5a4]
add esp, 4
test edi, edi
jne 0x4b8016
mov ebx, dword [esp + 0x44]
push ebp
push 1
push ebx
call fcn.004affa0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4b8016
push 0x4d0128
push ebp
call fcn.004aff30
mov edi, eax
add esp, 8
test edi, edi
jne 0x4b8016
push dword [esp + 0x48]
push eax
lea eax, [esi + 0x863c]
push eax
push ebx
push ebp
call fcn.004afd80
add esp, 0x14
mov edi, eax
xor ebp, ebp
test edi, edi
je 0x4b802a
push str.Failed_sending_CONNECT_to_proxy
push esi
call fcn.004a9250
add esp, 8
push ebp
call dword [0x6fb5a4]
add esp, 4
test edi, edi
jne 0x4b8689
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x44]
mov edi, dword [esp + 0x30]
mov dword [eax], 1
push 1
push 0
push esi
call fcn.004ac530
add esp, 0xc
test eax, eax
jle 0x4b87e4
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
call fcn.004ae190
add esp, 0x10
test eax, eax
je 0x4b87da
lea eax, [esi + 0x4c4]
mov dword [esp + 0x28], 0
mov ecx, 1
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ecx
mov edi, eax
xor ebx, ebx
lea esp, [esp]
test ecx, ecx
je 0x4b844a
cmp dword [esp + 0x2c], 0
jne 0x4b878a
push 1
push 0
push esi
call fcn.004ac530
add esp, 0xc
test eax, eax
jle 0x4b86b7
cmp eax, 0x3e8
jl 0x4b80d4
mov eax, 0x3e8
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esp + 0x3c]
call fcn.004ae190
add esp, 0x10
cmp eax, 0xffffffff
je 0x4b85f5
test eax, eax
je 0x4b8427
lea eax, [esp + 0x1c]
push eax
mov eax, 0x4000
sub eax, dword [esp + 0x2c]
push eax
push dword [esp + 0x28]
push dword [esp + 0x3c]
push ebp
call fcn.004a93e0
add esp, 0x14
cmp eax, 0x51
je 0x4b8438
test eax, eax
je 0x4b812e
xor ecx, ecx
mov dword [esp + 0x18], ecx
jmp 0x4b8427
mov eax, dword [esp + 0x1c]
test eax, eax
jg 0x4b8181
xor ecx, ecx
mov dword [esp + 0x18], ecx
cmp dword [esi + 0x11c], ecx
je 0x4b8166
cmp dword [esi + 0x85a0], ecx
je 0x4b8166
push str.Proxy_CONNECT_connection_closed
push esi
mov byte [ebp + 0x246], 1
call fcn.004a9320
add esp, 8
jmp 0x4b8427
push str.Proxy_CONNECT_aborted
push esi
mov dword [esp + 0x34], 1
call fcn.004a9250
add esp, 8
jmp 0x4b8427
add dword [esp + 0x28], eax
cmp dword [esp + 0x18], 1
jle 0x4b821a
mov edx, dword [esp + 0x24]
lea ecx, [esi + 0x4c4]
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], ecx
test edx, edx
je 0x4b81c3
sub edx, eax
mov dword [esp + 0x24], edx
test edx, edx
jg 0x4b8427
xor ecx, ecx
mov dword [esp + 0x18], ecx
jmp 0x4b8427
lea edx, [esp + 0x34]
mov dword [esp + 0x34], 0
push edx
push eax
push ecx
push ebp
call fcn.004c0c50
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4b8203
push str.chunk_reading_DONE_n
push esi
call fcn.004a9320
mov eax, dword [esp + 0x1c]
add esp, 8
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov dword [eax], 2
jmp 0x4b8427
push dword [esp + 0x34]
push str.Read__zd_bytes_of_chunk__continue_n
push esi
call fcn.004a9320
add esp, 0xc
jmp 0x4b8427
xor ebp, ebp
mov dword [esp + 0x34], ebp
test eax, eax
jle 0x4b8423
mov ecx, dword [esp + 0x20]
lea esp, [esp]
inc ebx
cmp byte [ecx], 0xa
jne 0x4b8411
cmp byte [esi + 0x284], 0
je 0x4b8254
push dword [esp + 0x44]
push ebx
push edi
push 1
push esi
call fcn.004a9180
add esp, 0x14
cmp byte [esi + 0x278], 0
mov eax, 2
je 0x4b8267
mov eax, 3
push ebx
push edi
push eax
push dword [esp + 0x50]
call fcn.004a9150
add dword [esi + 0x8638], ebx
add esp, 0x10
add dword [esi + 0x64], ebx
test eax, eax
jne 0x4b87f7
mov al, byte [edi]
cmp al, 0xd
je 0x4b848d
cmp al, 0xa
je 0x4b848d
mov al, byte [ebx + edi]
lea ebp, [ebx + edi]
push 0x11
push edi
push str.WWW_Authenticate:
mov byte [esp + 0x1f], al
mov byte [ebp], 0
call fcn.004b4060
add esp, 0xc
test eax, eax
je 0x4b82c8
mov eax, dword [esi + 0xa8]
cmp eax, 0x191
je 0x4b82e9
push 0x13
push edi
push str.Proxy_authenticate:
call fcn.004b4060
add esp, 0xc
test eax, eax
je 0x4b8332
mov eax, dword [esi + 0xa8]
cmp eax, 0x197
jne 0x4b8332
cmp eax, 0x197
push edi
sete byte [esp + 0x3c]
call fcn.004b0450
mov edi, eax
add esp, 4
test edi, edi
je 0x4b869d
push edi
push dword [esp + 0x3c]
push dword [esp + 0x4c]
call fcn.004b06d0
push edi
mov ebx, eax
call dword [0x6fb5a4]
add esp, 0x10
test ebx, ebx
je 0x4b83f9
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x30
ret
push 0xf
push edi
push str.Content_Length:
call fcn.004b4060
add esp, 0xc
test eax, eax
je 0x4b8360
push 0xa
lea eax, [edi + 0xf]
push 0
push eax
call dword [sym.imp.MSVCRT.dll_strtol]
add esp, 0xc
mov dword [esp + 0x24], eax
jmp 0x4b83f9
push str.close
push str.Connection:
push edi
call fcn.004b0380
add esp, 0xc
test al, al
je 0x4b837e
mov byte [esp + 0x11], 1
jmp 0x4b83f9
push str.chunked
push str.Transfer_Encoding:
push edi
call fcn.004b0380
add esp, 0xc
test al, al
je 0x4b83b3
push str.CONNECT_responded_chunked_n
push esi
call fcn.004a9320
push dword [esp + 0x4c]
mov byte [esp + 0x1e], 1
call fcn.004c0c30
add esp, 0xc
jmp 0x4b83f9
push str.close
push str.Proxy_Connection:
push edi
call fcn.004b0380
add esp, 0xc
test al, al
je 0x4b83d1
mov byte [esp + 0x11], 1
jmp 0x4b83f9
lea ebx, [esi + 0xa8]
push ebx
lea eax, [esp + 0x40]
push eax
push str.HTTP_1._d__d
push edi
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
cmp eax, 2
jne 0x4b83f9
mov eax, dword [ebx]
mov dword [esi + 0x8628], eax
mov ecx, dword [esp + 0x20]
xor ebx, ebx
mov al, byte [esp + 0x13]
mov byte [ebp], al
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x34]
lea edi, [ecx + 1]
inc ebp
inc ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x34], ebp
cmp ebp, eax
jl 0x4b8230
mov ebp, dword [esp + 0x44]
push ebp
call fcn.004b75f0
add esp, 4
test eax, eax
jne 0x4b86aa
cmp dword [esp + 0x28], 0x4000
mov ecx, dword [esp + 0x18]
jb 0x4b80a0
cmp dword [esp + 0x2c], 0
jne 0x4b878a
cmp dword [esi + 0x8628], 0xc8
je 0x4b8610
push ebp
call fcn.004b0510
add esp, 4
test eax, eax
jne 0x4b87f7
cmp byte [ebp + 0x230], al
je 0x4b8610
mov bl, 1
mov byte [esp + 0x11], bl
jmp 0x4b8618
cmp dword [esi + 0xa8], 0x197
lea eax, [esi + 0x4c4]
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], eax
jne 0x4b85bc
cmp byte [esi + 0x85a8], 0
jne 0x4b85bc
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], 2
test eax, eax
je 0x4b8508
push eax
push str.Ignore__ld_bytes_of_response_body_n
push esi
call fcn.004a9320
sub ebp, dword [esp + 0x28]
add esp, 0xc
mov eax, dword [esp + 0x24]
add eax, ebp
mov dword [esp + 0x24], eax
test eax, eax
mov eax, dword [esp + 0x14]
jg 0x4b85ea
mov dword [esp + 0x18], 0
mov dword [eax], 2
jmp 0x4b8423
mov al, byte [esp + 0x12]
test al, al
je 0x4b85a5
mov eax, dword [esp + 0x1c]
sub eax, ebp
mov byte [esi + 0xd9], 1
push eax
push str._zd_bytes_of_chunk_left_n
push esi
call fcn.004a9320
add esp, 0xc
cmp byte [edi + 1], 0xa
jne 0x4b8538
inc edi
inc ebp
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x20]
sub eax, ebp
push eax
lea eax, [edi + 1]
push eax
push dword [esp + 0x50]
call fcn.004c0c50
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4b8584
push str.chunk_reading_DONE_n
push esi
call fcn.004a9320
mov eax, dword [esp + 0x1c]
add esp, 8
mov dword [esp + 0x18], 0
mov dword [eax], 2
mov dword [eax], 2
jmp 0x4b8423
push dword [esp + 0x1c]
push str.Read__zd_bytes_of_chunk__continue_n
push esi
call fcn.004a9320
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [eax], 2
jmp 0x4b8423
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], 0
mov dword [eax], 2
jmp 0x4b8423
xor ecx, ecx
cmp dword [esi + 0x8628], 0xc8
mov dword [esp + 0x18], ecx
jne 0x4b85e6
mov eax, dword [esp + 0x1c]
sub eax, ebp
dec eax
je 0x4b85e6
push eax
push str.Proxy_CONNECT_followed_by__zd_bytes_of_opaque_data._Data_ignored__known_bug_39_
push esi
call fcn.004a9250
add esp, 0xc
mov eax, dword [esp + 0x14]
mov dword [eax], 2
jmp 0x4b8423
push str.Proxy_CONNECT_aborted_due_to_select_poll_error
push esi
mov dword [esp + 0x34], 1
call fcn.004a9250
add esp, 8
jmp 0x4b8427
mov bl, byte [esp + 0x11]
test bl, bl
je 0x4b8625
cmp dword [esi + 0xe0], 0
jne 0x4b86d2
cmp dword [esi + 0xe0], 0
mov eax, dword [esp + 0x14]
je 0x4b86f3
cmp dword [eax], 2
jne 0x4b8655
push 0
push str.TUNNEL_STATE_switched_to:__d_n
push esi
mov dword [eax], 0
call fcn.004a9320
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp dword [esi + 0xe0], 0
je 0x4b86f3
mov edi, dword [esp + 0x30]
jmp 0x4b7e0d
push ebx
call dword [0x6fb5a4]
push ebp
call dword [0x6fb5a4]
add esp, 8
mov eax, 0x1b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
push ebp
call dword [0x6fb5a4]
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x30
ret
pop edi
pop esi
pop ebp
mov eax, 0x2a
pop ebx
add esp, 0x30
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.004a9250
add esp, 8
mov eax, 0x38
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov edi, dword [esp + 0x48]
push dword [ebp + edi*4 + 0x144]
push ebp
call fcn.004abd50
add esp, 8
mov dword [ebp + edi*4 + 0x144], 0xffffffff
jmp 0x4b86f7
mov edi, dword [esp + 0x48]
cmp dword [esi + 0xa8], 0xc8
je 0x4b8797
test bl, bl
je 0x4b872b
cmp dword [esi + 0xe0], 0
je 0x4b872b
push str.Connect_me_again_please_n
push esi
mov byte [ebp + 0x246], 1
call fcn.004a9320
add esp, 8
jmp 0x4b8763
push dword [esi + 0xe0]
call dword [0x6fb5a4]
mov dword [esi + 0xe0], 0
mov byte [ebp + 0x230], 1
push dword [ebp + edi*4 + 0x144]
push ebp
call fcn.004abd50
add esp, 0xc
mov dword [ebp + edi*4 + 0x144], 0xffffffff
mov eax, dword [esp + 0x14]
mov dword [eax], 0
cmp byte [ebp + 0x246], 0
jne 0x4b87da
push dword [esi + 0xa8]
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push esi
call fcn.004a9250
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x30
ret
mov eax, dword [esp + 0x14]
mov dword [eax], 2
push dword [ebp + 0x270]
call dword [0x6fb5a4]
push str.Proxy_replied_OK_to_CONNECT_request_n
mov dword [ebp + 0x270], 0
push esi
mov byte [esi + 0x85a4], 1
call fcn.004a9320
mov byte [esi + 0xd9], 0
add esp, 0xc
mov byte [ebp + 0x23f], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.004a9250
mov eax, 0x38
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret