Function at 0x1004ae60
Capabilities:
Check http status code
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x3c
push ebx
push ebp
mov ebp, dword [esp + 0x48]
push esi
push edi
mov edi, dword [esp + 0x54]
mov ebx, dword [ebp + 0x7f0]
mov esi, dword [ebp]
mov dword [esp + 0x30], 0
lea eax, [edi*4 + 0x420]
add eax, ebp
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + edi*4 + 0x420]
mov dword [esp + 0x2c], eax
test ebx, ebx
je 0x1004b856
cmp dword [ebx + 0x20], 2
je 0x1004b856
mov byte [ebp + 0x51c], 0
cmp dword [ebx + 0x20], 0
jne 0x1004b12e
push dword [esp + 0x5c]
mov ebp, dword [esp + 0x5c]
push ebp
push str.Establish_HTTP_proxy_tunnel_to__s:_d_n
push esi
call fcn.10046b70
push str.D:_vcpkg_master_buildtreescurl_srcda0230d937_b280319101.cleanlibhttp_proxy.c
push 0xdb
push dword [esi + 0x12c]
call fcn.10049820
push dword [esp + 0x78]
mov dword [esi + 0x12c], 0
push ebp
push str._s:_d
call fcn.10056930
mov ebp, eax
add esp, 0x28
test ebp, ebp
je 0x1004b716
lea eax, [esp + 0x3c]
push 0x20000
push eax
call fcn.1003c9c0
push 1
push ebp
push str.CONNECT
push dword [esp + 0x64]
call fcn.100521e0
push str.D:_vcpkg_master_buildtreescurl_srcda0230d937_b280319101.cleanlibhttp_proxy.c
push 0xe8
push ebp
mov edi, eax
call fcn.10049820
add esp, 0x24
test edi, edi
jne 0x1004b10a
mov edx, dword [esp + 0x50]
xor ebp, ebp
mov edi, dword [esp + 0x58]
mov ecx, 0x100c86f8
mov eax, 0x100c86f4
mov dword [esp + 0x14], 0x100e4fb4
cmp dword [edx + 0x358], 1
cmovne eax, ecx
mov cl, byte [edx + 0x524]
mov dword [esp + 0x24], eax
cmp edi, dword [edx + 0x304]
je 0x1004af8f
push 0x3a
push edi
call fcn.1009bee0
add esp, 8
test eax, eax
setne cl
push dword [esp + 0x5c]
test cl, cl
mov edx, 0x100e4fb4
mov eax, 0x100c7a60
cmove eax, edx
push eax
mov eax, 0x100c7a64
push edi
cmove eax, edx
push eax
push str._s_s_s:_d
call fcn.10056930
mov edi, eax
add esp, 0x14
mov dword [esp + 0x28], edi
test edi, edi
je 0x1004b709
push str.Host
push dword [esp + 0x54]
call fcn.10051a70
add esp, 8
test eax, eax
jne 0x1004aff5
push edi
push str.Host:__s_r_n
call fcn.10056930
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x1004b6df
push str.Proxy_Connection
push dword [esp + 0x54]
call fcn.10051a70
test eax, eax
mov ecx, str.Proxy_Connection:_Keep_Alive_r_n
mov eax, 0x100e4fb4
push str.User_Agent
push dword [esp + 0x5c]
cmovne ecx, eax
mov dword [esp + 0x30], ecx
call fcn.10051a70
add esp, 0x10
test eax, eax
jne 0x1004b03d
cmp dword [esi + 0x9fc], eax
je 0x1004b03d
mov eax, dword [esi + 0x10c0]
mov dword [esp + 0x14], eax
push dword [esp + 0x20]
mov eax, dword [esi + 0x10bc]
mov edx, 0x100e4fb4
push dword [esp + 0x18]
test eax, eax
mov ecx, edx
cmovne ecx, eax
mov eax, edx
push ecx
test ebp, ebp
cmovne eax, ebp
push eax
push dword [esp + 0x34]
lea eax, [esp + 0x50]
push edi
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push eax
call fcn.1003c960
add esp, 0x20
mov edi, eax
test ebp, ebp
je 0x1004b090
push str.D:_vcpkg_master_buildtreescurl_srcda0230d937_b280319101.cleanlibhttp_proxy.c
push 0x11d
push ebp
call fcn.10049820
add esp, 0xc
push str.D:_vcpkg_master_buildtreescurl_srcda0230d937_b280319101.cleanlibhttp_proxy.c
push 0x11e
push dword [esp + 0x30]
call fcn.10049820
add esp, 0xc
test edi, edi
jne 0x1004b0fc
mov ebp, dword [esp + 0x50]
lea eax, [esp + 0x3c]
push eax
push 1
push ebp
call fcn.10051380
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1004b0fc
lea eax, [esp + 0x3c]
push 0x100c7084
push eax
call fcn.1003c930
mov edi, eax
add esp, 8
test edi, edi
jne 0x1004b0fc
push dword [esp + 0x54]
push eax
lea eax, [esi + 0x1140]
push eax
lea eax, [esp + 0x48]
push ebp
push eax
call fcn.10051800
mov edi, eax
add esp, 0x14
test edi, edi
je 0x1004b10a
push str.Failed_sending_CONNECT_to_proxy
push esi
call fcn.10046a90
add esp, 8
lea eax, [esp + 0x3c]
push eax
call fcn.1003c990
add esp, 4
test edi, edi
jne 0x1004b723
mov ebp, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov dword [ebx + 0x20], 1
push 1
push 0
push esi
call fcn.10047ff0
add esp, 0xc
test edx, edx
jl 0x1004b86d
jg 0x1004b14d
test eax, eax
je 0x1004b86d
push edi
push ebp
call fcn.10047490
add esp, 8
test al, al
je 0x1004b856
xor edi, edi
mov dword [esp + 0x14], edi
cmp dword [ebx + 0x10], edi
je 0x1004b1fa
nop
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0x1b]
push eax
push dword [esp + 0x38]
push ebp
call fcn.10046c50
mov edi, eax
add esp, 0x14
cmp edi, 0x51
je 0x1004b856
push ebp
call fcn.100545a0
add esp, 4
test eax, eax
jne 0x1004b860
test edi, edi
jne 0x1004b1ef
cmp dword [esp + 0x18], edi
jle 0x1004b62b
cmp dword [ebx + 0x10], 1
jle 0x1004b2b6
mov ecx, dword [ebx + 0x18]
mov eax, ecx
mov edx, dword [ebx + 0x1c]
or eax, edx
je 0x1004b271
sub ecx, 1
mov dword [ebx + 0x18], ecx
sbb edx, edi
mov dword [ebx + 0x1c], edx
js 0x1004b1e8
jg 0x1004b61c
test ecx, ecx
jne 0x1004b61c
mov dword [ebx + 0x20], 2
mov dword [ebx + 0x10], 0
mov edi, dword [esp + 0x14]
push ebp
call fcn.100545a0
add esp, 4
test eax, eax
jne 0x1004b860
test edi, edi
jne 0x1004b73b
mov eax, dword [esi + 0x1124]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1004b240
push ebp
call fcn.10051c80
add esp, 4
test eax, eax
jne 0x1004b858
cmp byte [ebp + 0x51d], al
je 0x1004b240
mov byte [ebx + 0x25], 1
cmp byte [ebx + 0x25], 0
je 0x1004b681
cmp dword [esi + 0x12c], 0
je 0x1004b6cc
mov edi, dword [esp + 0x1c]
push dword [edi]
push ebp
call fcn.10047400
add esp, 8
mov dword [edi], 0xffffffff
jmp 0x1004b74c
lea eax, [esp + 0x34]
mov dword [esp + 0x28], 0
push eax
lea eax, [esp + 0x2c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push ebp
call fcn.10073e60
add esp, 0x14
cmp eax, 0xffffffff
jne 0x1004b61c
push str.chunk_reading_DONE_n
push esi
call fcn.10046b70
add esp, 8
mov dword [ebx + 0x10], 0
jmp 0x1004b615
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.1003c980
add esp, 0xc
test eax, eax
jne 0x1004b72d
cmp byte [esp + 0x13], 0xa
jne 0x1004b61c
push ebx
call fcn.1003c9f0
push ebx
mov edi, eax
call fcn.1003c9e0
add esp, 8
mov ebp, eax
cmp byte [esi + 0xb3e], 0
je 0x1004b302
push ebp
push edi
push 1
push esi
call fcn.10046a00
add esp, 0x10
cmp byte [esi + 0xb52], 0
jne 0x1004b330
xor eax, eax
cmp byte [esi + 0xb39], al
push ebp
setne al
push edi
add eax, 2
push eax
push dword [esp + 0x5c]
call fcn.100469d0
add esp, 0x10
test eax, eax
jne 0x1004b858
mov eax, ebp
cdq
add dword [esi + 0x1138], eax
adc dword [esi + 0x113c], edx
mov al, byte [edi]
cmp al, 0xd
je 0x1004b55f
cmp al, 0xa
je 0x1004b55f
push 0x11
push edi
push str.WWW_Authenticate:
call fcn.10049f60
add esp, 0xc
test eax, eax
je 0x1004b373
mov ebp, dword [esi + 0xf0]
cmp ebp, 0x191
je 0x1004b395
push 0x13
push edi
push str.Proxy_authenticate:
call fcn.10049f60
add esp, 0xc
test eax, eax
je 0x1004b3e6
mov ebp, dword [esi + 0xf0]
cmp ebp, 0x197
jne 0x1004b3e6
push edi
call fcn.10051bb0
mov edi, eax
add esp, 4
test edi, edi
je 0x1004b716
cmp ebp, 0x197
push edi
sete cl
movzx ecx, cl
push ecx
push dword [esp + 0x58]
call fcn.10051f50
push str.D:_vcpkg_master_buildtreescurl_srcda0230d937_b280319101.cleanlibhttp_proxy.c
push 0x1f5
push edi
mov ebp, eax
call fcn.10049820
add esp, 0x18
test ebp, ebp
je 0x1004b54d
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x3c
ret
push 0xf
push edi
push str.Content_Length:
call fcn.10049f60
add esp, 0xc
test eax, eax
je 0x1004b452
mov ecx, dword [esi + 0xf0]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x1004b42c
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response_n
push esi
call fcn.10046b70
mov ebp, dword [esp + 0x5c]
add esp, 0xc
push ebx
call fcn.1003ca00
add esp, 4
jmp 0x1004b61c
lea eax, [ebx + 0x18]
push eax
push 0xa
lea eax, [edi + 0xf]
push 0
push eax
call fcn.10057dd0
mov ebp, dword [esp + 0x60]
add esp, 0x10
push ebx
call fcn.1003ca00
add esp, 4
jmp 0x1004b61c
push str.close
push str.Connection:
push edi
call fcn.10051af0
add esp, 0xc
test al, al
jne 0x1004b549
push 0x12
push edi
push str.Transfer_Encoding:
call fcn.10049f60
add esp, 0xc
test eax, eax
je 0x1004b4f8
mov ecx, dword [esi + 0xf0]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x1004b4b3
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
push esi
call fcn.10046b70
mov ebp, dword [esp + 0x5c]
add esp, 0xc
push ebx
call fcn.1003ca00
add esp, 4
jmp 0x1004b61c
push str.chunked
push str.Transfer_Encoding:
push edi
call fcn.10051af0
add esp, 0xc
test al, al
je 0x1004b54d
push str.CONNECT_responded_chunked_n
push esi
call fcn.10046b70
mov ebp, dword [esp + 0x58]
push ebp
mov byte [ebx + 0x24], 1
call fcn.10073e20
add esp, 0xc
push ebx
call fcn.1003ca00
add esp, 4
jmp 0x1004b61c
push str.close
push str.Proxy_Connection:
push edi
call fcn.10051af0
add esp, 0xc
test al, al
jne 0x1004b549
lea ebp, [esi + 0xf0]
push ebp
lea eax, [esp + 0x34]
push eax
push str.HTTP_1._d__d
push edi
call fcn.10029b90
add esp, 0x10
cmp eax, 2
jne 0x1004b54d
mov eax, dword [ebp]
mov ebp, dword [esp + 0x50]
push ebx
mov dword [esi + 0x1124], eax
call fcn.1003ca00
add esp, 4
jmp 0x1004b61c
mov byte [ebx + 0x25], 1
mov ebp, dword [esp + 0x50]
push ebx
call fcn.1003ca00
add esp, 4
jmp 0x1004b61c
cmp dword [esi + 0xf0], 0x197
jne 0x1004b602
cmp byte [esi + 0x10ea], 0
jne 0x1004b602
mov edx, dword [ebx + 0x18]
mov eax, edx
mov ecx, dword [ebx + 0x1c]
or eax, ecx
mov dword [ebx + 0x10], 2
je 0x1004b5a1
push ecx
push edx
push str.Ignore__I64d_bytes_of_response_body_n
push esi
call fcn.10046b70
add esp, 0x10
jmp 0x1004b609
cmp byte [ebx + 0x24], 0
je 0x1004b602
push str.Ignore_chunked_response_body_n
push esi
call fcn.10046b70
mov ebp, dword [esp + 0x58]
lea eax, [edi + 1]
mov byte [esi + 0x587], 1
cmp byte [eax], 0xa
cmove edi, eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x24]
push eax
push 1
lea eax, [edi + 1]
push eax
push ebp
call fcn.10073e60
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x1004b60d
push str.chunk_reading_DONE_n
push esi
call fcn.10046b70
add esp, 8
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x20], 2
jmp 0x1004b60d
mov dword [ebx + 0x10], 0
mov ebp, dword [esp + 0x50]
mov eax, dword [ebx + 0x18]
or eax, dword [ebx + 0x1c]
jne 0x1004b61c
mov dword [ebx + 0x20], 2
cmp dword [ebx + 0x10], 0
jne 0x1004b170
jmp 0x1004b1f6
cmp dword [esi + 0x5b8], 0
je 0x1004b662
cmp dword [esi + 0xdd8], 0
je 0x1004b662
push str.Proxy_CONNECT_connection_closed_n
push esi
mov byte [ebp + 0x51c], 1
call fcn.10046b70
mov edi, dword [esp + 0x1c]
add esp, 8
mov dword [ebx + 0x10], 0
jmp 0x1004b1fa
push str.Proxy_CONNECT_aborted
push esi
mov edi, 1
call fcn.10046a90
add esp, 8
mov dword [ebx + 0x10], 0
jmp 0x1004b1fa
mov eax, dword [esi + 0x12c]
test eax, eax
je 0x1004b748
cmp dword [ebx + 0x20], 2
mov edi, dword [esp + 0x54]
jne 0x1004aeb1
mov edi, dword [ebp + 0x7f0]
push edi
call fcn.1003ca00
add esp, 4
mov dword [edi + 0x20], 0
mov dword [edi + 0x10], 1
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov byte [edi + 0x25], 0
mov eax, dword [esi + 0x12c]
test eax, eax
je 0x1004b748
mov edi, dword [esp + 0x54]
jmp 0x1004aeb1
push str.D:_vcpkg_master_buildtreescurl_srcda0230d937_b280319101.cleanlibhttp_proxy.c
push 0x101
push edi
call fcn.10049820
lea eax, [esp + 0x48]
push eax
call fcn.1003c990
add esp, 0x10
mov eax, 0x1b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
lea eax, [esp + 0x3c]
push eax
call fcn.1003c990
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x3c
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
push str.CONNECT_response_too_large_
push esi
call fcn.10046a90
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x3c
ret
mov edi, dword [esp + 0x1c]
mov eax, dword [esi + 0x1124]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1004b7ff
cmp byte [ebx + 0x25], 0
je 0x1004b78c
cmp dword [esi + 0x12c], 0
je 0x1004b78c
push str.Connect_me_again_please_n
push esi
mov byte [ebp + 0x51c], 1
call fcn.10046b70
push ebp
call fcn.1004bc20
add esp, 0xc
jmp 0x1004b7c4
push str.D:_vcpkg_master_buildtreescurl_srcda0230d937_b280319101.cleanlibhttp_proxy.c
push 0x251
push dword [esi + 0x12c]
call fcn.10049820
push 2
push ebp
mov dword [esi + 0x12c], 0
call fcn.10047530
push dword [edi]
push ebp
call fcn.10047400
add esp, 0x1c
mov dword [edi], 0xffffffff
mov dword [ebx + 0x20], 0
cmp byte [ebp + 0x51c], 0
jne 0x1004b856
push ebx
call fcn.1003c990
push dword [esi + 0xf0]
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push esi
call fcn.10046a90
add esp, 0x10
mov eax, 0x38
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
push str.D:_vcpkg_master_buildtreescurl_srcda0230d937_b280319101.cleanlibhttp_proxy.c
mov dword [ebx + 0x20], 2
push 0x26a
push dword [esi + 0x10bc]
call fcn.10049820
push dword [esi + 0x1124]
mov dword [esi + 0x10bc], 0
push str.Proxy_replied__d_to_CONNECT_request_n
push esi
mov word [esi + 0xddc], 1
call fcn.10046b70
mov byte [esi + 0x587], 0
push ebx
mov byte [ebp + 0x52a], 0
call fcn.1003c990
add esp, 0x1c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
pop edi
pop esi
pop ebp
mov eax, 0x2a
pop ebx
add esp, 0x3c
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.10046a90
add esp, 8
mov eax, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret