Function at 0x462cd7
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
and dword [ebp - 0x7c], 0
mov eax, dword [ebp + 8]
add eax, 0x88
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + eax*4 + 0x158]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x4d8]
mov dword [ebp - 4], eax
push dword [ebp - 0xc]
call fcn.00463b4d
pop ecx
movzx eax, al
test eax, eax
je 0x462d2b
xor eax, eax
jmp 0x463739
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x254], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x20], 0
jne 0x462f62
and dword [ebp - 0x20], 0
and dword [ebp - 0x1c], 0
xor eax, eax
jne 0x462d4a
mov eax, dword [ebp + 8]
push dword [eax + 0x130]
call dword [0x4a9978]
pop ecx
mov eax, dword [ebp + 8]
and dword [eax + 0x130], 0
push 0x20000
lea eax, [ebp - 0x94]
push eax
call fcn.0044626c
pop ecx
pop ecx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.0046373b
add esp, 0x18
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x462da8
mov eax, dword [ebp - 8]
jmp 0x463739
push 1
push dword [ebp - 0x20]
push 0
push str.CONNECT
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.00472f41
add esp, 0x18
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x462f29
mov dword [ebp - 0x34], 0x4afc66
mov dword [ebp - 0x38], 0x4afc65
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xc0], 1
jne 0x462df2
mov dword [ebp - 0x30], 0x4ab08c
jmp 0x462df9
mov dword [ebp - 0x30], 0x4ab088
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x64], eax
push 0x4ab074
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.00472825
add esp, 0xc
test eax, eax
jne 0x462e1d
mov dword [ebp - 0x34], 0x4ab054
push 0x4ab048
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.00472825
add esp, 0xc
test eax, eax
jne 0x462e53
push 4
pop eax
imul eax, eax, 0x26
mov ecx, dword [ebp + 8]
cmp dword [ecx + eax + 0x518], 0
je 0x462e53
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc90]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc8c], 0
je 0x462e6d
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc8c]
mov dword [ebp - 0x3c], eax
jmp 0x462e74
mov dword [ebp - 0x3c], 0x4afc64
cmp dword [ebp - 0x1c], 0
je 0x462e82
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x40], eax
jmp 0x462e89
mov dword [ebp - 0x40], 0x4afc63
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push dword [ebp - 0x64]
push dword [ebp - 0x20]
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
lea eax, [ebp - 0x94]
push eax
call fcn.0044602b
add esp, 0x20
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x462ecf
lea eax, [ebp - 0x94]
push eax
push 1
push dword [ebp + 8]
call fcn.00473212
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x462eeb
push 0x4ab024
lea eax, [ebp - 0x94]
push eax
call fcn.00446092
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x462f14
push dword [ebp + 0xc]
push 0
mov eax, dword [ebp + 8]
add eax, 0xce8
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x94]
push eax
call fcn.0047253a
add esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x462f29
push str.Failed_sending_CONNECT_to_proxy
push dword [ebp + 8]
call fcn.0044c100
pop ecx
pop ecx
push dword [ebp - 0x1c]
call dword [0x4a9978]
pop ecx
push dword [ebp - 0x20]
call dword [0x4a9978]
pop ecx
lea eax, [ebp - 0x94]
push eax
call fcn.004462ad
pop ecx
cmp dword [ebp - 8], 0
je 0x462f58
mov eax, dword [ebp - 8]
jmp 0x463739
mov eax, dword [ebp - 4]
mov dword [eax + 0x20], 1
push 1
push 0
push dword [ebp + 8]
call fcn.0044f230
add esp, 0xc
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], edx
cmp dword [ebp - 0x80], 0
jg 0x462fa2
jl 0x462f8b
cmp dword [ebp - 0x84], 0
ja 0x462fa2
push str.Proxy_CONNECT_aborted_due_to_timeout
push dword [ebp + 8]
call fcn.0044c100
pop ecx
pop ecx
push 0x1c
pop eax
jmp 0x463739
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call fcn.0044c576
pop ecx
pop ecx
movzx eax, al
test eax, eax
jne 0x462fbd
xor eax, eax
jmp 0x463739
and dword [ebp - 0x60], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x46351d
lea eax, [ebp - 0x50]
push eax
push 1
lea eax, [ebp - 0x11]
push eax
push dword [ebp - 0x68]
push dword [ebp + 8]
call fcn.0044bf60
add esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x51
jne 0x462ff6
xor eax, eax
jmp 0x463739
push dword [ebp + 8]
call fcn.0046d100
pop ecx
test eax, eax
je 0x46300b
push 0x2a
pop eax
jmp 0x463739
cmp dword [ebp - 8], 0
je 0x46301f
mov eax, dword [ebp - 4]
and dword [eax + 0x10], 0
jmp 0x46351d
cmp dword [ebp - 0x50], 0
jg 0x46306f
mov eax, dword [ebp + 8]
cmp dword [eax + 0x178], 0
je 0x46304d
mov eax, dword [ebp + 8]
cmp dword [eax + 0x990], 0
je 0x46304d
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x254], 1
xor eax, eax
jne 0x463047
jmp 0x463063
mov dword [ebp - 0x60], 1
push str.Proxy_CONNECT_aborted
push dword [ebp + 8]
call fcn.0044c100
pop ecx
pop ecx
mov eax, dword [ebp - 4]
and dword [eax + 0x10], 0
jmp 0x46351d
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 2
jne 0x46311d
mov eax, dword [ebp - 4]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x44]
mov eax, dword [eax + 0x18]
or eax, dword [ecx + 0x1c]
je 0x4630da
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
sub ecx, 1
mov eax, dword [eax + 0x1c]
sbb eax, 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], ecx
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
cmp dword [eax + 0x1c], 0
jg 0x4630d8
jl 0x4630c2
mov eax, dword [ebp - 0x48]
cmp dword [eax + 0x18], 0
ja 0x4630d8
mov eax, dword [ebp - 4]
and dword [eax + 0x10], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x20], 2
jmp 0x46351d
jmp 0x463118
and dword [ebp - 0x6c], 0
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x6c]
push eax
push 1
lea eax, [ebp - 0x11]
push eax
push dword [ebp + 8]
call fcn.00485e31
add esp, 0x14
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0xffffffff
jne 0x463118
xor eax, eax
jne 0x463103
mov eax, dword [ebp - 4]
and dword [eax + 0x10], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x20], 2
jmp 0x462fc1
push 1
lea eax, [ebp - 0x11]
push eax
push dword [ebp - 4]
call fcn.004460e4
add esp, 0xc
test eax, eax
je 0x463149
push str.CONNECT_response_too_large_
push dword [ebp + 8]
call fcn.0044c100
pop ecx
pop ecx
push 0x38
pop eax
jmp 0x463739
movsx eax, byte [ebp - 0x11]
cmp eax, 0xa
je 0x463157
jmp 0x462fc1
push dword [ebp - 4]
call fcn.00446256
pop ecx
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
call fcn.00446296
pop ecx
mov dword [ebp - 0x28], eax
and dword [ebp - 8], 0
je 0x46317d
mov eax, dword [ebp - 8]
jmp 0x463739
push dword [ebp - 0x28]
push dword [ebp - 0x10]
push 1
push dword [ebp + 8]
call fcn.0044b170
add esp, 0x10
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x705]
test eax, eax
jne 0x4631e1
mov dword [ebp - 0x24], 2
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x6ec]
test eax, eax
je 0x4631bc
mov eax, dword [ebp - 0x24]
or eax, 1
mov dword [ebp - 0x24], eax
push dword [ebp - 0x28]
push dword [ebp - 0x10]
push dword [ebp - 0x24]
push dword [ebp + 8]
call fcn.0044c2a0
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4631e1
mov eax, dword [ebp - 8]
jmp 0x463739
mov eax, dword [ebp - 0x28]
cdq
mov ecx, dword [ebp + 8]
add eax, dword [ecx + 0xce0]
adc edx, dword [ecx + 0xce4]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xce0], eax
mov dword [ecx + 0xce4], edx
xor eax, eax
inc eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x10]
movsx eax, byte [ecx + eax]
cmp eax, 0xd
je 0x46322b
xor eax, eax
inc eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x10]
movsx eax, byte [ecx + eax]
cmp eax, 0xa
jne 0x463320
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x70], 0x197
jne 0x4632e9
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0xcb9]
test eax, eax
jne 0x4632e9
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 2
mov eax, dword [ebp - 4]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x4c]
mov eax, dword [eax + 0x18]
or eax, dword [ecx + 0x1c]
je 0x463271
xor eax, eax
jne 0x46326b
jmp 0x4632e7
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x24]
test eax, eax
je 0x4632e0
xor eax, eax
jne 0x46327c
mov eax, dword [ebp - 0x18]
mov byte [eax + 0xbf], 1
xor eax, eax
inc eax
shl eax, 0
mov ecx, dword [ebp - 0x10]
movsx eax, byte [ecx + eax]
cmp eax, 0xa
jne 0x4632a3
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x50]
push eax
push 1
mov eax, dword [ebp - 0x10]
inc eax
push eax
push dword [ebp + 8]
call fcn.00485e31
add esp, 0x14
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0xffffffff
jne 0x4632de
xor eax, eax
jne 0x4632c9
mov eax, dword [ebp - 4]
and dword [eax + 0x10], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x20], 2
jmp 0x4632e7
mov eax, dword [ebp - 4]
and dword [eax + 0x10], 0
jmp 0x4632f0
mov eax, dword [ebp - 4]
and dword [eax + 0x10], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
jne 0x463317
mov eax, dword [ebp - 4]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x54]
mov eax, dword [eax + 0x18]
or eax, dword [ecx + 0x1c]
jne 0x463317
mov eax, dword [ebp - 4]
mov dword [eax + 0x20], 2
xor eax, eax
jne 0x463317
jmp 0x462fc1
push 0x11
push dword [ebp - 0x10]
push 0x4aaf94
call fcn.0045faf0
add esp, 0xc
test eax, eax
je 0x463342
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x70], 0x191
je 0x463368
push 0x13
push dword [ebp - 0x10]
push 0x4aaf80
call fcn.0045faf0
add esp, 0xc
test eax, eax
je 0x4633e5
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x70], 0x197
jne 0x4633e5
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x70], 0x197
jne 0x46337d
mov dword [ebp - 0x58], 1
jmp 0x463381
and dword [ebp - 0x58], 0
cmp dword [ebp - 0x58], 0
jne 0x46338d
and dword [ebp - 0x5c], 0
jmp 0x463394
mov dword [ebp - 0x5c], 1
mov al, byte [ebp - 0x5c]
mov byte [ebp - 0x78], al
push dword [ebp - 0x10]
call fcn.0047310c
pop ecx
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x4633b4
push 0x1b
pop eax
jmp 0x463739
push dword [ebp - 0x2c]
push dword [ebp - 0x78]
push dword [ebp + 8]
call fcn.00472bde
add esp, 0xc
mov dword [ebp - 8], eax
push dword [ebp - 0x2c]
call dword [0x4a9978]
pop ecx
cmp dword [ebp - 8], 0
je 0x4633e0
mov eax, dword [ebp - 8]
jmp 0x463739
jmp 0x46350f
push 0xf
push dword [ebp - 0x10]
push 0x4aaf70
call fcn.0045faf0
add esp, 0xc
test eax, eax
je 0x463434
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x70]
cdq
push 0x64
pop ecx
idiv ecx
cmp eax, 2
jne 0x463412
xor eax, eax
jne 0x46340c
jmp 0x46342f
mov eax, dword [ebp - 4]
add eax, 0x18
push eax
push 0xa
push 0
xor eax, eax
inc eax
imul eax, eax, 0xf
add eax, dword [ebp - 0x10]
push eax
call fcn.00475960
add esp, 0x10
jmp 0x46350f
push 0x4aaf68
push 0x4aaf5c
push dword [ebp - 0x10]
call fcn.0047361d
add esp, 0xc
movzx eax, al
test eax, eax
je 0x46345c
mov eax, dword [ebp - 4]
mov byte [eax + 0x25], 1
jmp 0x46350f
push 0x12
push dword [ebp - 0x10]
push 0x4aaf48
call fcn.0045faf0
add esp, 0xc
test eax, eax
je 0x4634bb
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x70]
cdq
push 0x64
pop ecx
idiv ecx
cmp eax, 2
jne 0x463489
xor eax, eax
jne 0x463483
jmp 0x4634b9
push 0x4aaf40
push 0x4aaf2c
push dword [ebp - 0x10]
call fcn.0047361d
add esp, 0xc
movzx eax, al
test eax, eax
je 0x4634b9
xor eax, eax
jne 0x4634a5
mov eax, dword [ebp - 4]
mov byte [eax + 0x24], 1
push dword [ebp + 8]
call fcn.004863b9
pop ecx
jmp 0x46350f
push 0x4aaf24
push 0x4aaf10
push dword [ebp - 0x10]
call fcn.0047361d
add esp, 0xc
movzx eax, al
test eax, eax
je 0x4634e0
mov eax, dword [ebp - 4]
mov byte [eax + 0x25], 1
jmp 0x46350f
mov eax, dword [ebp - 0x18]
add eax, 0x70
push eax
lea eax, [ebp - 0x7c]
push eax
push str.HTTP_1._d__d
push dword [ebp - 0x10]
call fcn.0041b99d
add esp, 0x10
cmp eax, 2
jne 0x46350f
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 0x70]
mov dword [eax + 0xccc], ecx
push dword [ebp - 4]
call fcn.00446106
pop ecx
jmp 0x462fc1
push dword [ebp + 8]
call fcn.0046d100
pop ecx
test eax, eax
je 0x463532
push 0x2a
pop eax
jmp 0x463739
cmp dword [ebp - 0x60], 0
je 0x463540
push 0x38
pop eax
jmp 0x463739
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xccc]
cdq
push 0x64
pop ecx
idiv ecx
cmp eax, 2
je 0x463583
push dword [ebp + 8]
call fcn.004728eb
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x46356e
mov eax, dword [ebp - 8]
jmp 0x463739
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x255]
test eax, eax
je 0x463583
mov eax, dword [ebp - 4]
mov byte [eax + 0x25], 1
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x25]
test eax, eax
je 0x4635c5
mov eax, dword [ebp + 8]
cmp dword [eax + 0x130], 0
je 0x4635c5
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax*4 + 0x158]
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.0044c76b
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
or dword [ecx + eax*4 + 0x158], 0xffffffff
jmp 0x4635f6
mov eax, dword [ebp + 8]
cmp dword [eax + 0x130], 0
je 0x4635e6
mov eax, dword [ebp - 4]
cmp dword [eax + 0x20], 2
jne 0x4635e6
push 1
push dword [ebp + 8]
call fcn.0046386e
pop ecx
pop ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x130], 0
jne 0x462d35
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xccc]
cdq
push 0x64
pop ecx
idiv ecx
cmp eax, 2
je 0x4636d0
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x25]
test eax, eax
je 0x46363e
mov eax, dword [ebp + 8]
cmp dword [eax + 0x130], 0
je 0x46363e
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x254], 1
xor eax, eax
jne 0x46362f
push dword [ebp + 8]
call fcn.0046383b
pop ecx
jmp 0x46368d
mov eax, dword [ebp + 8]
push dword [eax + 0x130]
call dword [0x4a9978]
pop ecx
mov eax, dword [ebp + 8]
and dword [eax + 0x130], 0
push 2
push dword [ebp - 0xc]
call fcn.0044f1a6
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax*4 + 0x158]
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.0044c76b
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
or dword [ecx + eax*4 + 0x158], 0xffffffff
mov eax, dword [ebp - 4]
and dword [eax + 0x20], 0
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x254]
test eax, eax
je 0x4636a9
xor eax, eax
jmp 0x463739
push dword [ebp - 4]
call fcn.004462ad
pop ecx
mov eax, dword [ebp + 8]
push dword [eax + 0xf8]
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push dword [ebp + 8]
call fcn.0044c100
add esp, 0xc
push 0x38
pop eax
jmp 0x463739
mov eax, dword [ebp - 4]
mov dword [eax + 0x20], 2
mov eax, dword [ebp + 8]
push dword [eax + 0xc8c]
call dword [0x4a9978]
pop ecx
mov eax, dword [ebp + 8]
and dword [eax + 0xc8c], 0
xor eax, eax
jne 0x4636da
mov eax, dword [ebp + 8]
and dword [eax + 0xc8c], 0
mov eax, dword [ebp + 8]
mov byte [eax + 0x994], 1
mov eax, dword [ebp + 8]
mov byte [eax + 0x995], 0
xor eax, eax
jne 0x463716
mov eax, dword [ebp + 8]
mov byte [eax + 0x147], 0
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x262], 0
push dword [ebp - 4]
call fcn.004462ad
pop ecx
xor eax, eax
leave
ret