Function at 0x437040
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 0x43707b
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.0042c910
mov eax, dword [edi + 0x174]
test eax, eax
jne 0x437420
call fcn.00436b40
mov edi, eax
test edi, edi
mov eax, 0x1b
je 0x4372f0
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 0x4372f0
mov dword [esp], esi
mov ecx, 1
mov edx, str.CONNECT
mov dword [esp + 4], ecx
mov eax, dword [ebp + 8]
call fcn.004364f0
test eax, eax
mov ebx, eax
je 0x437449
mov dword [esp], esi
call dword [0x4f50ac]
test ebx, ebx
mov eax, ebx
jne 0x4372f0
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.0043a250
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.0043a290
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 0x4375ac
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.0043a340
cmp eax, 0xffffffff
je 0x437526
test eax, eax
je 0x437250
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.0042c270
test eax, eax
jl 0x437250
jne 0x437440
mov edx, dword [ebp - 0x1c]
test edx, edx
jle 0x43762c
mov dword [ebp - 0x60], 0
add dword [ebp - 0x2c], edx
cmp dword [ebp - 0x60], edx
jge 0x437250
jmp 0x437230
inc dword [ebp - 0x30]
lea eax, [esi + 1]
cmp byte [esi], 0xa
je 0x437300
inc dword [ebp - 0x60]
mov esi, eax
cmp dword [ebp - 0x60], edx
jl 0x437230
lea esi, [esi]
cmp dword [ebp - 0x2c], 0x3fff
ja 0x43726e
movzx edx, byte [ebp - 0x48]
xor eax, eax
cmp dword [ebp - 0x54], 0
sete al
test edx, eax
jne 0x437160
mov ecx, dword [ebp - 0x54]
test ecx, ecx
jne 0x4375c0
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x8384], 0xc8
je 0x437293
mov edi, dword [ebp + 8]
mov dword [esp], edi
call fcn.00436160
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x174]
test eax, eax
jne 0x437420
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + 0x50]
cmp eax, 0xc8
jne 0x437683
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x154]
mov dword [esp], eax
call fcn.004221b0
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.0042c910
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 0x43756d
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.0042c620
test eax, eax
mov ebx, eax
jne 0x437566
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 0x437440
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 0x437398
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x50]
cmp eax, 0x191
je 0x437546
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 0x4373c9
mov edi, dword [ebp - 0x28]
mov eax, dword [edi + 0x50]
cmp eax, 0x197
je 0x437546
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 0x437598
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 0x437244
mov dword [esp], eax
xor ebx, ebx
call dword [0x4f50ac]
mov edi, dword [ebp + 8]
mov dword [edi + 0x174], ebx
jmp 0x4370c2
mov byte [ebp - 0x48], 0
jmp 0x437250
mov dword [ebp - 0x58], 0x50b7bd
mov eax, dword [ebp - 0x24]
mov edx, str.Host:
mov dword [ebp - 0x5c], 0x50b7bd
call fcn.00435eb0
test eax, eax
je 0x43765e
mov eax, dword [ebp - 0x24]
mov edx, str.Proxy_Connection:
call fcn.00435eb0
test eax, eax
je 0x437620
test ebx, ebx
jne 0x43750d
mov ecx, dword [ebp - 0x5c]
mov eax, 0x50b7bd
mov dword [esp + 0x1c], ecx
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 0x5c]
test edx, edx
je 0x4374a8
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 0x4374be
mov eax, 0x50b7bd
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.00436dc0
test eax, eax
mov ebx, eax
je 0x43760f
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x437505
mov ecx, dword [ebp - 0x58]
cmp byte [ecx], 0
jne 0x437650
test ebx, ebx
je 0x4375d0
mov eax, str.Failed_sending_CONNECT_to_proxy
mov dword [esp + 4], eax
mov edi, dword [ebp - 0x24]
mov dword [esp], edi
call fcn.0042c530
jmp 0x437122
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.0042c530
jmp 0x437250
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.00436840
test eax, eax
mov ebx, eax
je 0x4373f7
mov eax, ebx
jmp 0x4372f0
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.0042c3f0
jmp 0x437310
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov eax, dword [edx + 0x50]
mov dword [ecx + 0x8384], eax
jmp 0x4373f7
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.0042c530
mov eax, 0x38
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
mov eax, 0x50ba21
mov dword [esp + 4], eax
call fcn.00436dc0
test eax, eax
mov ebx, eax
jne 0x43750d
mov eax, dword [ebp - 0x24]
add eax, 0x8394
mov dword [esp], eax
mov edx, dword [ebp + 8]
mov eax, edi
call fcn.00436b70
test eax, eax
mov ebx, eax
je 0x437122
jmp 0x43750d
mov eax, dword [ebp + 8]
mov edx, edi
call fcn.00436f40
mov ebx, eax
jmp 0x4374f2
mov dword [ebp - 0x5c], str.Proxy_Connection:_Keep_Alive_r_n
jmp 0x437481
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.0042c530
jmp 0x437250
mov dword [esp], ecx
call dword [0x4f50ac]
jmp 0x437505
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 0x43746c
mov ebx, 0x1b
jmp 0x43746c
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.0042c530
mov eax, 0x38
jmp 0x4375c5