Function at 0x10059943
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
and dword [ebp - 0x8c], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add eax, 0x90
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*4 + 0x1a8]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x560]
mov dword [ebp - 4], eax
push dword [ebp + 8]
call fcn.1005a9bf
pop ecx
movzx eax, al
test eax, eax
je 0x10059999
xor eax, eax
jmp 0x1005a6bc
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x284]
and eax, 0xff7fffff
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x284], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x4018], 0
jne 0x10059ce5
xor eax, eax
jne 0x100599c0
mov eax, dword [ebp - 8]
push dword [eax + 0x148]
call dword [0x1008a938]
pop ecx
mov eax, dword [ebp - 8]
and dword [eax + 0x148], 0
call fcn.10061bec
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x100599f4
push 0x1b
pop eax
jmp 0x1005a6bc
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push str._s:_d
call fcn.100550bb
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x10059a22
lea eax, [ebp - 0x14]
push eax
call fcn.10061bfd
pop ecx
push 0x1b
pop eax
jmp 0x1005a6bc
push 1
push dword [ebp - 0x24]
push str.CONNECT
push dword [ebp + 8]
call fcn.1006111a
add esp, 0x10
mov dword [ebp - 0xc], eax
push dword [ebp - 0x24]
call dword [0x1008a938]
pop ecx
cmp dword [ebp - 0xc], 0
jne 0x10059cb6
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x48], 0x100907b7
mov dword [ebp - 0x4c], 0x100907b6
mov eax, dword [ebp + 8]
cmp dword [eax + 0xf0], 1
jne 0x10059a75
mov dword [ebp - 0x34], 0x1008c37c
jmp 0x10059a7c
mov dword [ebp - 0x34], 0x1008c378
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x284]
shr eax, 9
and eax, 1
mov byte [ebp - 0xd], al
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [eax + 0x9c]
je 0x10059ad8
push 0x3a
push dword [ebp + 0x10]
call fcn.100078e0
pop ecx
pop ecx
test eax, eax
je 0x10059abb
mov dword [ebp - 0x38], 1
jmp 0x10059abf
and dword [ebp - 0x38], 0
cmp dword [ebp - 0x38], 0
jne 0x10059acb
and dword [ebp - 0x3c], 0
jmp 0x10059ad2
mov dword [ebp - 0x3c], 1
mov al, byte [ebp - 0x3c]
mov byte [ebp - 0xd], al
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x10059ae9
mov dword [ebp - 0x40], 0x1008c374
jmp 0x10059af0
mov dword [ebp - 0x40], 0x100907b5
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x10059b01
mov dword [ebp - 0x44], 0x1008c370
jmp 0x10059b08
mov dword [ebp - 0x44], 0x100907b4
push dword [ebp + 0x14]
push dword [ebp - 0x40]
push dword [ebp + 0x10]
push dword [ebp - 0x44]
push str._s_s_s:_d
call fcn.100550bb
add esp, 0x14
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x10059b3c
lea eax, [ebp - 0x14]
push eax
call fcn.10061bfd
pop ecx
push 0x1b
pop eax
jmp 0x1005a6bc
push 0x1008c35c
push dword [ebp + 8]
call fcn.100608e2
pop ecx
pop ecx
test eax, eax
jne 0x10059b83
push dword [ebp - 0x20]
push str.Host:__s_r_n
call fcn.100550bb
pop ecx
pop ecx
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x10059b83
push dword [ebp - 0x20]
call dword [0x1008a938]
pop ecx
lea eax, [ebp - 0x14]
push eax
call fcn.10061bfd
pop ecx
push 0x1b
pop eax
jmp 0x1005a6bc
push 0x1008c33c
push dword [ebp + 8]
call fcn.100608e2
pop ecx
pop ecx
test eax, eax
jne 0x10059b9d
mov dword [ebp - 0x48], 0x1008c31c
push 0x1008c310
push dword [ebp + 8]
call fcn.100608e2
pop ecx
pop ecx
test eax, eax
jne 0x10059bcf
push 4
pop eax
imul eax, eax, 0x26
mov ecx, dword [ebp - 8]
cmp dword [ecx + eax + 0x92c], 0
je 0x10059bcf
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2d8]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x2d4], 0
je 0x10059be9
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2d4]
mov dword [ebp - 0x50], eax
jmp 0x10059bf0
mov dword [ebp - 0x50], 0x100907b3
cmp dword [ebp - 0x1c], 0
je 0x10059bfe
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x54], eax
jmp 0x10059c05
mov dword [ebp - 0x54], 0x100907b2
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
push dword [ebp - 0x54]
push dword [ebp - 0x74]
push dword [ebp - 0x20]
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
lea eax, [ebp - 0x14]
push eax
call fcn.10061081
add esp, 0x20
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x1c], 0
je 0x10059c3b
push dword [ebp - 0x1c]
call dword [0x1008a938]
pop ecx
push dword [ebp - 0x20]
call dword [0x1008a938]
pop ecx
cmp dword [ebp - 0xc], 0
jne 0x10059c5e
push dword [ebp - 0x14]
push 1
push dword [ebp + 8]
call fcn.100613d4
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10059c77
push 0x1008c2ec
lea eax, [ebp - 0x14]
push eax
call fcn.10061081
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10059c9d
push dword [ebp + 0xc]
push 0
mov eax, dword [ebp - 8]
add eax, 0xf98
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.10061919
add esp, 0x14
mov dword [ebp - 0xc], eax
and dword [ebp - 0x14], 0
cmp dword [ebp - 0xc], 0
je 0x10059cb6
push str.Failed_sending_CONNECT_to_proxy
push dword [ebp - 8]
call fcn.1004094a
pop ecx
pop ecx
lea eax, [ebp - 0x14]
push eax
call fcn.10061bfd
pop ecx
cmp dword [ebp - 0xc], 0
je 0x10059cce
mov eax, dword [ebp - 0xc]
jmp 0x1005a6bc
mov eax, dword [ebp - 4]
mov dword [eax + 0x4018], 1
mov eax, dword [ebp - 4]
and dword [eax + 0x4000], 0
push 1
push 0
push dword [ebp - 8]
call fcn.100436aa
add esp, 0xc
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], edx
cmp dword [ebp - 0x90], 0
jg 0x10059d2b
jl 0x10059d14
cmp dword [ebp - 0x94], 0
ja 0x10059d2b
push str.Proxy_CONNECT_aborted_due_to_timeout
push dword [ebp - 8]
call fcn.1004094a
pop ecx
pop ecx
push 0x1c
pop eax
jmp 0x1005a6bc
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10040d44
pop ecx
pop ecx
movzx eax, al
test eax, eax
jne 0x10059d46
xor eax, eax
jmp 0x1005a6bc
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x4004], 0
je 0x1005a470
cmp dword [ebp - 0x30], 0
jne 0x1005a470
xor eax, eax
inc eax
shl eax, 0xe
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x400c], eax
jb 0x10059d8f
push str.CONNECT_response_too_large_
push dword [ebp - 8]
call fcn.1004094a
pop ecx
pop ecx
push 0x38
pop eax
jmp 0x1005a6bc
lea eax, [ebp - 0x64]
push eax
push 1
mov eax, dword [ebp - 4]
push dword [eax + 0x400c]
push dword [ebp - 0x78]
push dword [ebp + 8]
call fcn.100406a7
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x51
jne 0x10059dbc
xor eax, eax
jmp 0x1005a6bc
push dword [ebp + 8]
call fcn.1005b7c5
pop ecx
test eax, eax
je 0x10059dd1
push 0x2a
pop eax
jmp 0x1005a6bc
cmp dword [ebp - 0xc], 0
je 0x10059de8
mov eax, dword [ebp - 4]
and dword [eax + 0x4004], 0
jmp 0x1005a470
cmp dword [ebp - 0x64], 0
jg 0x10059e48
mov eax, dword [ebp - 8]
cmp dword [eax + 0x5c0], 0
je 0x10059e23
mov eax, dword [ebp - 8]
cmp dword [eax + 0xcf0], 0
je 0x10059e23
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x284]
or eax, 0x800000
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x284], eax
xor eax, eax
jne 0x10059e1d
jmp 0x10059e39
mov dword [ebp - 0x30], 1
push str.Proxy_CONNECT_aborted
push dword [ebp - 8]
call fcn.1004094a
pop ecx
pop ecx
mov eax, dword [ebp - 4]
and dword [eax + 0x4004], 0
jmp 0x1005a470
mov eax, dword [ebp - 4]
cmp dword [eax + 0x4004], 1
jle 0x10059f27
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x400c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x58]
mov eax, dword [eax + 0x4010]
or eax, dword [ecx + 0x4014]
je 0x10059ee0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4010]
sub ecx, 1
mov eax, dword [eax + 0x4014]
sbb eax, 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x4010], ecx
mov dword [edx + 0x4014], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 0x4014], 0
jg 0x10059ede
jl 0x10059ec2
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 0x4010], 0
ja 0x10059ede
mov eax, dword [ebp - 4]
and dword [eax + 0x4004], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x4018], 2
jmp 0x1005a470
jmp 0x10059f22
and dword [ebp - 0x7c], 0
lea eax, [ebp - 0x7c]
push eax
push 1
mov eax, dword [ebp - 4]
push dword [eax + 0x400c]
push dword [ebp + 8]
call fcn.10075875
add esp, 0x10
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0xffffffff
jne 0x10059f22
xor eax, eax
jne 0x10059f07
mov eax, dword [ebp - 4]
and dword [eax + 0x4004], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x4018], 2
jmp 0x10059d4a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4000]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x4000], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x400c]
movsx eax, byte [eax]
cmp eax, 0xa
je 0x10059f63
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x400c]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x400c], eax
jmp 0x10059d4a
and dword [ebp - 0xc], 0
je 0x10059f71
mov eax, dword [ebp - 0xc]
jmp 0x1005a6bc
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xa8c]
shr eax, 0x1a
and eax, 1
je 0x10059fa1
mov eax, dword [ebp - 4]
push dword [eax + 0x4000]
mov eax, dword [ebp - 4]
push dword [eax + 0x4008]
push 1
push dword [ebp - 8]
call fcn.1003fa75
add esp, 0x10
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xa90]
shr eax, 0x13
and eax, 1
jne 0x1005a004
mov dword [ebp - 0x28], 2
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xa8c]
shr eax, 0x15
and eax, 1
je 0x10059fd3
mov eax, dword [ebp - 0x28]
or eax, 1
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
push dword [eax + 0x4000]
mov eax, dword [ebp - 4]
push dword [eax + 0x4008]
push dword [ebp - 0x28]
push dword [ebp + 8]
call fcn.10040b1a
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1005a004
mov eax, dword [ebp - 0xc]
jmp 0x1005a6bc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4000]
cdq
mov ecx, dword [ebp - 8]
add eax, dword [ecx + 0xf90]
adc edx, dword [ecx + 0xf94]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xf90], eax
mov dword [ecx + 0xf94], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4000]
cdq
mov ecx, dword [ebp - 8]
add eax, dword [ecx + 0xb0]
adc edx, dword [ecx + 0xb4]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xb0], eax
mov dword [ecx + 0xb4], edx
xor eax, eax
inc eax
imul eax, eax, 0
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x4008]
movsx eax, byte [ecx + eax]
cmp eax, 0xd
je 0x1005a088
xor eax, eax
inc eax
imul eax, eax, 0
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x4008]
movsx eax, byte [ecx + eax]
cmp eax, 0xa
jne 0x1005a1c9
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x400c], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x78], 0x197
jne 0x1005a193
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xf4c]
shr eax, 5
and eax, 1
jne 0x1005a193
mov eax, dword [ebp - 4]
mov dword [eax + 0x4004], 2
mov eax, dword [ebp - 4]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x60]
mov eax, dword [eax + 0x4010]
or eax, dword [ecx + 0x4014]
je 0x1005a0e9
xor eax, eax
jne 0x1005a0e0
jmp 0x1005a191
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x401c]
and eax, 1
je 0x1005a187
xor eax, eax
jne 0x1005a0fb
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x500]
or eax, 8
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x500], eax
xor eax, eax
inc eax
shl eax, 0
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x4008]
movsx eax, byte [ecx + eax]
cmp eax, 0xa
jne 0x1005a13f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4008]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x4008], eax
lea eax, [ebp - 0x64]
push eax
push 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4008]
inc eax
push eax
push dword [ebp + 8]
call fcn.10075875
add esp, 0x10
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0xffffffff
jne 0x1005a185
xor eax, eax
jne 0x1005a16a
mov eax, dword [ebp - 4]
and dword [eax + 0x4004], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x4018], 2
jmp 0x1005a191
mov eax, dword [ebp - 4]
and dword [eax + 0x4004], 0
jmp 0x1005a19d
mov eax, dword [ebp - 4]
and dword [eax + 0x4004], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x68]
mov eax, dword [eax + 0x4010]
or eax, dword [ecx + 0x4014]
jne 0x1005a1c4
mov eax, dword [ebp - 4]
mov dword [eax + 0x4018], 2
jmp 0x10059d4a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4000]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x4008]
mov byte [ecx + eax], 0
push 0x11
mov eax, dword [ebp - 4]
push dword [eax + 0x4008]
push 0x1008c25c
call fcn.10052e32
add esp, 0xc
test eax, eax
je 0x1005a207
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x78], 0x191
je 0x1005a237
push 0x13
mov eax, dword [ebp - 4]
push dword [eax + 0x4008]
push 0x1008c248
call fcn.10052e32
add esp, 0xc
test eax, eax
je 0x1005a2c0
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x78], 0x197
jne 0x1005a2c0
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x78], 0x197
jne 0x1005a24c
mov dword [ebp - 0x6c], 1
jmp 0x1005a250
and dword [ebp - 0x6c], 0
cmp dword [ebp - 0x6c], 0
jne 0x1005a25c
and dword [ebp - 0x70], 0
jmp 0x1005a263
mov dword [ebp - 0x70], 1
mov al, byte [ebp - 0x70]
mov byte [ebp - 0x88], al
mov eax, dword [ebp - 4]
push dword [eax + 0x4008]
call fcn.100612ce
pop ecx
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x1005a28c
push 0x1b
pop eax
jmp 0x1005a6bc
push dword [ebp - 0x2c]
push dword [ebp - 0x88]
push dword [ebp + 8]
call fcn.10060cd1
add esp, 0xc
mov dword [ebp - 0xc], eax
push dword [ebp - 0x2c]
call dword [0x1008a938]
pop ecx
cmp dword [ebp - 0xc], 0
je 0x1005a2bb
mov eax, dword [ebp - 0xc]
jmp 0x1005a6bc
jmp 0x1005a443
push 0xf
mov eax, dword [ebp - 4]
push dword [eax + 0x4008]
push 0x1008c238
call fcn.10052e32
add esp, 0xc
test eax, eax
je 0x1005a31d
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x78]
cdq
push 0x64
pop ecx
idiv ecx
cmp eax, 2
jne 0x1005a2f3
xor eax, eax
jne 0x1005a2ed
jmp 0x1005a318
mov eax, dword [ebp - 4]
add eax, 0x4010
push eax
push 0xa
push 0
xor eax, eax
inc eax
imul eax, eax, 0xf
mov ecx, dword [ebp - 4]
add eax, dword [ecx + 0x4008]
push eax
call fcn.10066c91
add esp, 0x10
jmp 0x1005a443
push 0x1008c230
push 0x1008c224
mov eax, dword [ebp - 4]
push dword [eax + 0x4008]
call fcn.100617f7
add esp, 0xc
movzx eax, al
test eax, eax
je 0x1005a359
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x401c]
or eax, 2
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x401c], eax
jmp 0x1005a443
push 0x12
mov eax, dword [ebp - 4]
push dword [eax + 0x4008]
push 0x1008c210
call fcn.10052e32
add esp, 0xc
test eax, eax
je 0x1005a3d2
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x78]
cdq
push 0x64
pop ecx
idiv ecx
cmp eax, 2
jne 0x1005a38c
xor eax, eax
jne 0x1005a386
jmp 0x1005a3d0
push 0x1008c208
push 0x1008c1f4
mov eax, dword [ebp - 4]
push dword [eax + 0x4008]
call fcn.100617f7
add esp, 0xc
movzx eax, al
test eax, eax
je 0x1005a3d0
xor eax, eax
jne 0x1005a3ae
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x401c]
or eax, 1
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x401c], eax
push dword [ebp + 8]
call fcn.10075f14
pop ecx
jmp 0x1005a443
push 0x1008c1ec
push 0x1008c1d8
mov eax, dword [ebp - 4]
push dword [eax + 0x4008]
call fcn.100617f7
add esp, 0xc
movzx eax, al
test eax, eax
je 0x1005a40b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x401c]
or eax, 2
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x401c], eax
jmp 0x1005a443
mov eax, dword [ebp - 0x18]
add eax, 0x78
push eax
lea eax, [ebp - 0x8c]
push eax
push str.HTTP_1._d__d
mov eax, dword [ebp - 4]
push dword [eax + 0x4008]
call fcn.10004581
add esp, 0x10
cmp eax, 2
jne 0x1005a443
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 0x78]
mov dword [eax + 0xf7c], ecx
mov eax, dword [ebp - 4]
and dword [eax + 0x4000], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x400c], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x400c]
mov dword [eax + 0x4008], ecx
jmp 0x10059d4a
push dword [ebp + 8]
call fcn.1005b7c5
pop ecx
test eax, eax
je 0x1005a485
push 0x2a
pop eax
jmp 0x1005a6bc
cmp dword [ebp - 0x30], 0
je 0x1005a493
push 0x38
pop eax
jmp 0x1005a6bc
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xf7c]
cdq
push 0x64
pop ecx
idiv ecx
cmp eax, 2
je 0x1005a4e4
push dword [ebp + 8]
call fcn.100609b6
pop ecx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1005a4c1
mov eax, dword [ebp - 0xc]
jmp 0x1005a6bc
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x284]
and eax, 1
je 0x1005a4e4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x401c]
or eax, 2
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x401c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x401c]
shr eax, 1
and eax, 1
je 0x1005a527
mov eax, dword [ebp - 8]
cmp dword [eax + 0x148], 0
je 0x1005a527
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push dword [ecx + eax*4 + 0x1a8]
push dword [ebp + 8]
call fcn.10040f0a
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
or dword [ecx + eax*4 + 0x1a8], 0xffffffff
jmp 0x1005a55b
mov eax, dword [ebp - 8]
cmp dword [eax + 0x148], 0
je 0x1005a54b
mov eax, dword [ebp - 4]
cmp dword [eax + 0x4018], 2
jne 0x1005a54b
push 1
push dword [ebp + 8]
call fcn.1005a6e1
pop ecx
pop ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x148], 0
jne 0x100599b0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xf7c]
cdq
push 0x64
pop ecx
idiv ecx
cmp eax, 2
je 0x1005a640
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x401c]
shr eax, 1
and eax, 1
je 0x1005a5b5
mov eax, dword [ebp - 8]
cmp dword [eax + 0x148], 0
je 0x1005a5b5
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x284]
or eax, 0x800000
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x284], eax
xor eax, eax
jne 0x1005a5a6
push dword [ebp + 8]
call fcn.1005a6be
pop ecx
jmp 0x1005a600
mov eax, dword [ebp - 8]
push dword [eax + 0x148]
call dword [0x1008a938]
pop ecx
mov eax, dword [ebp - 8]
and dword [eax + 0x148], 0
push 2
push dword [ebp + 8]
call fcn.10043608
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push dword [ecx + eax*4 + 0x1a8]
push dword [ebp + 8]
call fcn.10040f0a
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
or dword [ecx + eax*4 + 0x1a8], 0xffffffff
mov eax, dword [ebp - 4]
and dword [eax + 0x4018], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x284]
shr eax, 0x17
and eax, 1
je 0x1005a622
xor eax, eax
jmp 0x1005a6bc
mov eax, dword [ebp - 8]
push dword [eax + 0x108]
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push dword [ebp - 8]
call fcn.1004094a
add esp, 0xc
push 0x38
pop eax
jmp 0x1005a6bc
mov eax, dword [ebp - 4]
mov dword [eax + 0x4018], 2
mov eax, dword [ebp + 8]
push dword [eax + 0x2d4]
call dword [0x1008a938]
pop ecx
mov eax, dword [ebp + 8]
and dword [eax + 0x2d4], 0
xor eax, eax
jne 0x1005a64d
mov eax, dword [ebp + 8]
and dword [eax + 0x2d4], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xcf4]
or eax, 1
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xcf4], eax
xor eax, eax
jne 0x1005a68a
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x590]
and eax, 0xfffffff7
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x590], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x284]
and eax, 0xfffeffff
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x284], eax
xor eax, eax
leave
ret