Function at 0x4362d0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x8c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], 0
mov edx, dword [ebp + 8]
mov eax, dword [eax]
add edx, 0x180
mov dword [ebp - 0x28], edx
mov ecx, dword [eax + 0x98]
mov dword [ebp - 0x24], eax
test ecx, ecx
mov dword [ebp - 0x4c], ecx
jne 0x43630b
mov dword [ebp - 0x4c], 0xe10
mov dword [ebp - 0x54], 0
mov edi, dword [ebp + 8]
mov esi, str.Establish_HTTP_proxy_tunnel_to__s:_d_n
mov eax, dword [ebp + 0xc]
mov eax, dword [edi + eax*4 + 0x98]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov edx, dword [ebp + 0x10]
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov ecx, dword [ebp - 0x24]
mov dword [esp], ecx
call fcn.0042bba0
mov eax, dword [edi + 0x174]
test eax, eax
jne 0x4366b0
call fcn.00435dd0
mov edi, eax
test edi, edi
mov eax, 0x1b
je 0x436580
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov edx, dword [ebp + 0x10]
mov dword [esp], str._s:_d
mov dword [esp + 4], edx
call sym.fortis.exe_curl_maprintf
mov esi, eax
test esi, esi
mov eax, 0x1b
je 0x436580
mov dword [esp], esi
mov ecx, 1
mov edx, str.CONNECT
mov dword [esp + 4], ecx
mov eax, dword [ebp + 8]
call fcn.00435780
test eax, eax
mov ebx, eax
je 0x4366d9
mov dword [esp], esi
call dword [0x4f40ac]
test ebx, ebx
mov eax, ebx
jne 0x436580
mov dword [ebp - 0x2c], 0
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x48], 1
add esi, 0x2e4
mov dword [ebp - 0x6c], esi
lea esi, [esi]
lea edi, [edi]
call fcn.004394e0
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x88]
mov ebx, dword [edi + 0x8c]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call fcn.00439520
mov edx, 0x10624dd3
mov ecx, eax
imul edx
mov eax, ecx
sar eax, 0x1f
sar edx, 6
sub edx, eax
mov eax, dword [ebp - 0x4c]
sub eax, edx
test eax, eax
jle 0x43683c
mov edi, 0x3e8
mov ebx, 0xffffffff
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov edx, dword [ebp - 0x50]
mov dword [esp], edx
call fcn.004395d0
cmp eax, 0xffffffff
je 0x4367b6
test eax, eax
je 0x4364e0
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], eax
mov edx, dword [ebp - 0x2c]
mov eax, 0x4000
mov dword [esp + 8], esi
sub eax, edx
mov dword [esp + 0xc], eax
mov edi, dword [ebp - 0x50]
mov dword [esp + 4], edi
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0042b500
test eax, eax
jl 0x4364e0
jne 0x4366d0
mov edx, dword [ebp - 0x1c]
test edx, edx
jle 0x4368bc
mov dword [ebp - 0x60], 0
add dword [ebp - 0x2c], edx
cmp dword [ebp - 0x60], edx
jge 0x4364e0
jmp 0x4364c0
inc dword [ebp - 0x30]
lea eax, [esi + 1]
cmp byte [esi], 0xa
je 0x436590
inc dword [ebp - 0x60]
mov esi, eax
cmp dword [ebp - 0x60], edx
jl 0x4364c0
lea esi, [esi]
cmp dword [ebp - 0x2c], 0x3fff
ja 0x4364fe
movzx edx, byte [ebp - 0x48]
xor eax, eax
cmp dword [ebp - 0x54], 0
sete al
test edx, eax
jne 0x4363f0
mov ecx, dword [ebp - 0x54]
test ecx, ecx
jne 0x436850
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x8384], 0xc8
je 0x436523
mov edi, dword [ebp + 8]
mov dword [esp], edi
call fcn.004353f0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x174]
test eax, eax
jne 0x4366b0
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + 0x50]
cmp eax, 0xc8
jne 0x436913
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x154]
mov dword [esp], eax
call fcn.00421440
mov ecx, dword [ebp + 8]
xor eax, eax
mov edi, dword [ebp - 0x24]
mov dword [ecx + 0x154], eax
mov eax, str.Proxy_replied_OK_to_CONNECT_request_n
mov byte [edi + 0x8374], 1
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.0042bba0
xor eax, eax
mov esi, esi
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp - 0x24]
cmp byte [ecx + 0x19c], 0
jne 0x4367fd
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x30]
movzx eax, byte [ecx + 0x18c]
mov dword [esp + 0xc], edi
mov edx, dword [ebp - 0x6c]
mov dword [esp], ecx
cmp al, 1
sbb eax, eax
mov dword [esp + 8], edx
add eax, 3
mov dword [esp + 4], eax
call fcn.0042b8b0
test eax, eax
mov ebx, eax
jne 0x4367f6
mov ecx, dword [ebp - 0x6c]
movzx eax, byte [ecx]
cmp al, 0xd
sete dl
cmp al, 0xa
sete al
or eax, edx
test al, 1
jne 0x4366d0
movzx eax, byte [edi + ecx]
mov byte [ebp - 0x61], al
mov eax, 0x11
mov byte [edi + ecx], 0
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], str.WWW_Authenticate:
call sym.fortis.exe_curl_strnequal
test eax, eax
je 0x436628
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x50]
cmp eax, 0x191
je 0x4367d6
mov edi, 0x13
mov dword [esp + 8], edi
mov ecx, dword [ebp - 0x6c]
mov dword [esp], str.Proxy_authenticate:
mov dword [esp + 4], ecx
call sym.fortis.exe_curl_strnequal
test eax, eax
je 0x436659
mov edi, dword [ebp - 0x28]
mov eax, dword [edi + 0x50]
cmp eax, 0x197
je 0x4367d6
mov eax, dword [ebp - 0x28]
mov ebx, str.HTTP_1._d__d
mov dword [esp + 4], ebx
add eax, 0x50
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x20]
mov dword [esp + 8], eax
mov edi, dword [ebp - 0x6c]
mov dword [esp], edi
call sub.msvcrt.dll_sscanf
cmp eax, 2
je 0x436828
movzx eax, byte [ebp - 0x61]
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x6c]
mov byte [edx + ecx], al
mov edx, dword [ebp - 0x1c]
lea eax, [esi + 1]
inc dword [ebp - 0x60]
mov esi, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x6c], eax
jmp 0x4364d4
mov dword [esp], eax
xor ebx, ebx
call dword [0x4f40ac]
mov edi, dword [ebp + 8]
mov dword [edi + 0x174], ebx
jmp 0x436352
mov byte [ebp - 0x48], 0
jmp 0x4364e0
mov dword [ebp - 0x58], 0x50a61d
mov eax, dword [ebp - 0x24]
mov edx, str.Host:
mov dword [ebp - 0x5c], 0x50a61d
call fcn.00435140
test eax, eax
je 0x4368ee
mov eax, dword [ebp - 0x24]
mov edx, str.Proxy_Connection:
call fcn.00435140
test eax, eax
je 0x4368b0
test ebx, ebx
jne 0x43679d
mov ecx, dword [ebp - 0x5c]
mov eax, 0x50a61d
mov dword [esp + 0x1c], ecx
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 0x5c]
test edx, edx
je 0x436738
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x158]
mov dword [esp + 0x18], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x154]
test eax, eax
jne 0x43674e
mov eax, 0x50a61d
mov dword [esp + 0x14], eax
mov ecx, dword [ebp - 0x58]
mov dword [esp + 0x10], ecx
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov edx, dword [ebp + 0x10]
mov eax, str.CONNECT__s:_d_HTTP_1.0_r_n_s_s_s_s
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [esp + 8], edx
call fcn.00436050
test eax, eax
mov ebx, eax
je 0x43689f
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x436795
mov ecx, dword [ebp - 0x58]
cmp byte [ecx], 0
jne 0x4368e0
test ebx, ebx
je 0x436860
mov eax, str.Failed_sending_CONNECT_to_proxy
mov dword [esp + 4], eax
mov edi, dword [ebp - 0x24]
mov dword [esp], edi
call fcn.0042b7c0
jmp 0x4363b2
mov dword [ebp - 0x54], 1
mov ecx, str.Proxy_CONNECT_aborted_due_to_select___error
mov dword [esp + 4], ecx
mov ecx, dword [ebp - 0x24]
mov dword [esp], ecx
call fcn.0042b7c0
jmp 0x4364e0
mov edx, dword [ebp - 0x6c]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
call fcn.00435ad0
test eax, eax
mov ebx, eax
je 0x436687
mov eax, ebx
jmp 0x436580
mov edi, dword [ebp + 8]
mov dword [esp + 0x10], edi
mov eax, dword [ebp - 0x30]
mov dword [esp + 0xc], eax
mov edx, dword [ebp - 0x6c]
mov eax, 1
mov dword [esp + 4], eax
mov dword [esp], ecx
mov dword [esp + 8], edx
call fcn.0042b680
jmp 0x4365a0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov eax, dword [edx + 0x50]
mov dword [ecx + 0x8384], eax
jmp 0x436687
mov eax, str.Proxy_CONNECT_aborted_due_to_timeout
mov dword [esp + 4], eax
mov edi, dword [ebp - 0x24]
mov dword [esp], edi
call fcn.0042b7c0
mov eax, 0x38
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
mov eax, 0x50a881
mov dword [esp + 4], eax
call fcn.00436050
test eax, eax
mov ebx, eax
jne 0x43679d
mov eax, dword [ebp - 0x24]
add eax, 0x8394
mov dword [esp], eax
mov edx, dword [ebp + 8]
mov eax, edi
call fcn.00435e00
test eax, eax
mov ebx, eax
je 0x4363b2
jmp 0x43679d
mov eax, dword [ebp + 8]
mov edx, edi
call fcn.004361d0
mov ebx, eax
jmp 0x436782
mov dword [ebp - 0x5c], str.Proxy_Connection:_Keep_Alive_r_n
jmp 0x436711
mov byte [ebp - 0x48], 0
mov eax, str.Proxy_CONNECT_aborted
mov dword [ebp - 0x54], 1
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x24]
mov dword [esp], edx
call fcn.0042b7c0
jmp 0x4364e0
mov dword [esp], ecx
call dword [0x4f40ac]
jmp 0x436795
mov dword [esp + 4], esi
mov dword [esp], str.Host:__s_r_n
call sym.fortis.exe_curl_maprintf
mov dword [ebp - 0x58], eax
test eax, eax
jne 0x4366fc
mov ebx, 0x1b
jmp 0x4366fc
mov dword [esp + 8], eax
mov edx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov dword [esp + 4], edx
mov edi, dword [ebp - 0x24]
mov dword [esp], edi
call fcn.0042b7c0
mov eax, 0x38
jmp 0x436855