Function at 0x5d8d40
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
add eax, 0x108
push esi
push edi
push ebx
mov edi, dword [ebx]
lea eax, [ebx + eax*4]
mov esi, dword [ebx + 0x6cc]
mov dword [ebp - 0xc], eax
mov eax, dword [eax]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], eax
call fcn.005d96d0
add esp, 4
test al, al
jne 0x5d96a3
mov byte [ebx + 0x51c], al
cmp dword [esi + 0x20], 0
jne 0x5d8fcf
push dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
push ebx
push str.Establish_HTTP_proxy_tunnel_to__s:_d_n
push edi
call fcn.005cb950
push dword [edi + 0x12c]
call dword [0x8aa52c]
push dword [ebp + 0x14]
mov dword [edi + 0x12c], 0
push ebx
push str._s:_d
call fcn.005dadb0
mov ebx, eax
add esp, 0x20
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x5d9558
lea eax, [ebp - 0x40]
push 0x20000
push eax
call fcn.005c30a0
push 1
push ebx
push str.CONNECT
push dword [ebp + 8]
call fcn.005d3890
push dword [ebp - 0x14]
mov ebx, eax
call dword [0x8aa52c]
add esp, 0x1c
test ebx, ebx
jne 0x5d8fb1
mov edx, dword [ebp + 8]
mov ecx, 0x7f84e4
mov eax, 0x7f84e8
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 0x877985
cmp dword [edx + 0x358], 1
cmovne eax, ecx
mov cl, byte [edx + 0x524]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
cmp eax, dword [edx + 0x304]
je 0x5d8e4e
push 0x3a
push eax
call fcn.00735650
add esp, 8
test eax, eax
setne cl
push dword [ebp + 0x14]
test cl, cl
mov edx, 0x877985
mov eax, 0x7cabd4
cmove eax, edx
push eax
push dword [ebp + 0x10]
mov eax, 0x7cabcc
cmove eax, edx
push eax
push str._s_s_s:_d
call fcn.005dadb0
add esp, 0x14
mov dword [ebp - 8], eax
test eax, eax
je 0x5d954c
push str.Host
push dword [ebp + 8]
call fcn.005d31f0
add esp, 8
test eax, eax
jne 0x5d8eb6
push dword [ebp - 8]
push str.Host:__s_r_n
call fcn.005dadb0
mov ebx, eax
add esp, 8
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x5d952b
push str.Proxy_Connection
push dword [ebp + 8]
call fcn.005d31f0
test eax, eax
mov ecx, str.Proxy_Connection:_Keep_Alive_r_n
mov eax, 0x877985
push str.User_Agent
push dword [ebp + 8]
cmovne ecx, eax
mov dword [ebp - 0x1c], ecx
call fcn.005d31f0
add esp, 0x10
test eax, eax
jne 0x5d8efa
cmp dword [edi + 0x9fc], eax
je 0x5d8efa
mov eax, dword [edi + 0x10e8]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x1c]
mov eax, dword [edi + 0x10e4]
mov edx, 0x877985
push dword [ebp - 0x10]
test eax, eax
mov ecx, edx
cmovne ecx, eax
mov eax, edx
push ecx
test ebx, ebx
cmovne eax, ebx
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x40]
push dword [ebp - 8]
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push eax
call fcn.005c3040
mov ebx, eax
add esp, 0x20
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x5d8f45
push eax
call dword [0x8aa52c]
add esp, 4
push dword [ebp - 8]
call dword [0x8aa52c]
add esp, 4
test ebx, ebx
jne 0x5d8fa3
lea eax, [ebp - 0x40]
push eax
push 1
push dword [ebp + 8]
call fcn.005d2b70
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x5d8fa3
lea eax, [ebp - 0x40]
push 0x7f6ea8
push eax
call fcn.005c3010
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x5d8fa3
push dword [ebp + 0xc]
push eax
lea eax, [edi + 0x1168]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
call fcn.005d2fe0
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x5d8fb1
push str.Failed_sending_CONNECT_to_proxy
push edi
call fcn.005cb890
add esp, 8
lea eax, [ebp - 0x40]
push eax
call fcn.005c3070
add esp, 4
test ebx, ebx
jne 0x5d9564
mov ebx, dword [ebp + 8]
mov dword [esi + 0x20], 1
push 1
push 0
push edi
call fcn.005cced0
add esp, 0xc
test edx, edx
jl 0x5d96ac
jg 0x5d8fee
test eax, eax
je 0x5d96ac
push dword [ebp + 0xc]
push ebx
call fcn.005cc250
add esp, 8
test al, al
je 0x5d96a3
cmp dword [esi + 0x10], 0
mov dword [ebp - 0x10], 0
je 0x5d9455
lea eax, [ebp - 0x18]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x24]
push ebx
call fcn.005cba10
mov ebx, eax
add esp, 0x14
cmp ebx, 0x51
je 0x5d96a3
push dword [ebp + 8]
call fcn.005d7940
add esp, 4
test eax, eax
jne 0x5d9587
test ebx, ebx
jne 0x5d944b
cmp dword [ebp - 0x18], ebx
jle 0x5d94df
cmp dword [esi + 0x10], 2
jne 0x5d90d9
mov ecx, dword [esi + 0x18]
mov eax, ecx
mov edx, dword [esi + 0x1c]
or eax, edx
je 0x5d9095
sub ecx, 1
mov dword [esi + 0x18], ecx
sbb edx, ebx
mov dword [esi + 0x1c], edx
test edx, edx
jl 0x5d9444
jg 0x5d9087
test ecx, ecx
jbe 0x5d9444
mov ebx, dword [ebp + 8]
cmp dword [esi + 0x10], 0
jne 0x5d9013
jmp 0x5d9455
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push 1
lea eax, [ebp - 1]
push eax
push ebx
call fcn.005f8c20
add esp, 0x14
cmp eax, 0xffffffff
jne 0x5d908a
push str.chunk_reading_DONE_n
push edi
call fcn.005cb950
add esp, 8
mov dword [esi + 0x10], 0
mov dword [esi + 0x20], 2
jmp 0x5d908a
push 1
lea eax, [ebp - 1]
push eax
push esi
call fcn.005c3060
add esp, 0xc
test eax, eax
jne 0x5d956d
cmp byte [ebp - 1], 0xa
jne 0x5d9087
push esi
call fcn.00628de0
push esi
mov ebx, eax
call fcn.00607310
push eax
push ebx
push 1
push edi
mov dword [ebp - 0x14], eax
call fcn.005cb800
add esp, 0x18
cmp byte [edi + 0xb55], 0
jne 0x5d9143
push dword [ebp - 0x14]
xor eax, eax
cmp byte [edi + 0xb3d], al
push ebx
setne al
add eax, 2
push eax
push dword [ebp + 8]
call fcn.005cb7d0
add esp, 0x10
test eax, eax
jne 0x5d96bf
mov eax, dword [ebp - 0x14]
cdq
add dword [edi + 0x1160], eax
adc dword [edi + 0x1164], edx
mov al, byte [ebx]
cmp al, 0xd
je 0x5d9382
cmp al, 0xa
je 0x5d9382
push 0x11
push ebx
push str.WWW_Authenticate:
call fcn.005cf090
add esp, 0xc
test eax, eax
je 0x5d9189
mov eax, dword [edi + 0xf0]
mov dword [ebp - 0x14], eax
cmp eax, 0x191
je 0x5d91ad
push 0x13
push ebx
push str.Proxy_authenticate:
call fcn.005cf090
add esp, 0xc
test eax, eax
je 0x5d9200
mov eax, dword [edi + 0xf0]
mov dword [ebp - 0x14], eax
cmp eax, 0x197
jne 0x5d9200
push ebx
call fcn.005d3340
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x5d9558
cmp dword [ebp - 0x14], 0x197
push ebx
sete cl
movzx ecx, cl
push ecx
push dword [ebp + 8]
call fcn.005d36c0
push ebx
mov dword [ebp - 0x20], eax
call dword [0x8aa52c]
mov eax, dword [ebp - 0x20]
add esp, 0x10
test eax, eax
jne 0x5d96bf
mov ebx, dword [ebp + 8]
push esi
call fcn.005c30d0
add esp, 4
jmp 0x5d908a
push 0xf
push ebx
push str.Content_Length:
call fcn.005cf090
add esp, 0xc
test eax, eax
je 0x5d926a
mov ecx, dword [edi + 0xf0]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x5d9245
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response_n
push edi
call fcn.005cb950
mov ebx, dword [ebp + 8]
add esp, 0xc
push esi
call fcn.005c30d0
add esp, 4
jmp 0x5d908a
lea eax, [esi + 0x18]
push eax
push 0xa
lea eax, [ebx + 0xf]
push 0
push eax
call fcn.005dc4c0
mov ebx, dword [ebp + 8]
add esp, 0x10
push esi
call fcn.005c30d0
add esp, 4
jmp 0x5d908a
push str.close
push str.Connection:
push ebx
call fcn.005d3270
add esp, 0xc
test al, al
je 0x5d9296
mov ebx, dword [ebp + 8]
push esi
mov byte [esi + 0x25], 1
call fcn.005c30d0
add esp, 4
jmp 0x5d908a
push 0x12
push ebx
push str.Transfer_Encoding:
call fcn.005cf090
add esp, 0xc
test eax, eax
je 0x5d931b
mov ecx, dword [edi + 0xf0]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x5d92db
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
push edi
call fcn.005cb950
mov ebx, dword [ebp + 8]
add esp, 0xc
push esi
call fcn.005c30d0
add esp, 4
jmp 0x5d908a
push str.chunked
push str.Transfer_Encoding:
push ebx
call fcn.005d3270
add esp, 0xc
test al, al
je 0x5d9371
push str.CONNECT_responded_chunked_n
push edi
call fcn.005cb950
mov ebx, dword [ebp + 8]
push ebx
mov byte [esi + 0x24], 1
call fcn.005f8be0
add esp, 0xc
push esi
call fcn.005c30d0
add esp, 4
jmp 0x5d908a
push str.close
push str.Proxy_Connection:
push ebx
call fcn.005d3270
add esp, 0xc
test al, al
je 0x5d9347
mov ebx, dword [ebp + 8]
push esi
mov byte [esi + 0x25], 1
call fcn.005c30d0
add esp, 4
jmp 0x5d908a
lea eax, [edi + 0xf0]
push eax
lea eax, [ebp - 0x28]
push eax
push str.HTTP_1._d__d
push ebx
call fcn.005c2710
add esp, 0x10
cmp eax, 2
jne 0x5d9371
mov eax, dword [edi + 0xf0]
mov dword [edi + 0x114c], eax
mov ebx, dword [ebp + 8]
push esi
call fcn.005c30d0
add esp, 4
jmp 0x5d908a
cmp dword [edi + 0xf0], 0x197
jne 0x5d9422
cmp byte [edi + 0x1111], 0
jne 0x5d9422
mov edx, dword [esi + 0x18]
mov eax, edx
mov ecx, dword [esi + 0x1c]
or eax, ecx
mov dword [esi + 0x10], 2
je 0x5d93c4
push ecx
push edx
push str.Ignore__I64d_bytes_of_response_body_n
push edi
call fcn.005cb950
add esp, 0x10
jmp 0x5d9429
cmp byte [esi + 0x24], 0
je 0x5d9422
push str.Ignore_chunked_response_body_n
push edi
call fcn.005cb950
lea eax, [ebx + 1]
mov byte [edi + 0x587], 1
cmp byte [eax], 0xa
cmove ebx, eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebx + 1]
mov ebx, dword [ebp + 8]
push 1
push eax
push ebx
call fcn.005f8c20
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x5d942c
push str.chunk_reading_DONE_n
push edi
call fcn.005cb950
add esp, 8
mov dword [esi + 0x10], 0
mov dword [esi + 0x20], 2
jmp 0x5d942c
mov dword [esi + 0x10], 0
mov ebx, dword [ebp + 8]
mov eax, dword [esi + 0x18]
or eax, dword [esi + 0x1c]
jne 0x5d908a
mov dword [esi + 0x20], 2
jmp 0x5d908a
mov dword [esi + 0x20], 2
mov ebx, dword [ebp + 8]
mov dword [esi + 0x10], 0
push ebx
call fcn.005d7940
add esp, 4
test eax, eax
jne 0x5d9587
cmp dword [ebp - 0x10], eax
jne 0x5d9649
mov eax, dword [edi + 0x114c]
sub eax, 0xc8
cmp eax, 0x64
jb 0x5d949c
push ebx
call fcn.005d3410
add esp, 4
test eax, eax
jne 0x5d96bf
cmp byte [ebx + 0x51d], al
je 0x5d949c
mov byte [esi + 0x25], 1
cmp byte [esi + 0x25], 0
je 0x5d94af
cmp dword [edi + 0x12c], 0
jne 0x5d9593
cmp dword [edi + 0x12c], 0
je 0x5d95aa
cmp dword [esi + 0x20], 2
jne 0x5d94cd
push 1
push ebx
call fcn.005d9920
add esp, 8
cmp dword [edi + 0x12c], 0
jne 0x5d8d85
jmp 0x5d95aa
cmp dword [edi + 0x5b8], 0
je 0x5d950e
cmp dword [edi + 0xe00], 0
je 0x5d950e
mov ebx, dword [ebp + 8]
push str.Proxy_CONNECT_connection_closed_n
push edi
mov byte [ebx + 0x51c], 1
call fcn.005cb950
add esp, 8
jmp 0x5d944e
push str.Proxy_CONNECT_aborted
push edi
mov dword [ebp - 0x10], 1
call fcn.005cb890
mov ebx, dword [ebp + 8]
add esp, 8
jmp 0x5d944e
push dword [ebp - 8]
call dword [0x8aa52c]
lea eax, [ebp - 0x40]
push eax
call fcn.005c3070
add esp, 8
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x40]
push eax
call fcn.005c3070
add esp, 4
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push str.CONNECT_response_too_large_
push edi
call fcn.005cb890
add esp, 8
mov eax, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x2a
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
push dword [eax]
push ebx
call fcn.005cc1d0
mov eax, dword [ebp - 0xc]
add esp, 8
mov dword [eax], 0xffffffff
mov eax, dword [edi + 0x114c]
sub eax, 0xc8
cmp eax, 0x64
jb 0x5d9655
cmp byte [esi + 0x25], 0
je 0x5d95ea
cmp dword [edi + 0x12c], 0
je 0x5d95ea
push str.Connect_me_again_please_n
push edi
mov byte [ebx + 0x51c], 1
call fcn.005cb950
push ebx
call fcn.005d98f0
add esp, 0xc
jmp 0x5d961f
push dword [edi + 0x12c]
call dword [0x8aa52c]
push 2
push ebx
mov dword [edi + 0x12c], 0
call fcn.005cc300
mov eax, dword [ebp - 0xc]
push dword [eax]
push ebx
call fcn.005cc1d0
mov eax, dword [ebp - 0xc]
add esp, 0x14
mov dword [eax], 0xffffffff
mov dword [esi + 0x20], 0
cmp byte [ebx + 0x51c], 0
jne 0x5d96a3
push esi
call fcn.005c3070
push dword [edi + 0xf0]
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push edi
call fcn.005cb890
add esp, 0x10
pop edi
pop esi
mov eax, 0x38
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x20], 2
push dword [edi + 0x10e4]
call dword [0x8aa52c]
push dword [edi + 0x114c]
mov dword [edi + 0x10e4], 0
push str.Proxy_replied__d_to_CONNECT_request_n
push edi
mov word [edi + 0xe04], 1
call fcn.005cb950
mov byte [edi + 0x587], 0
push esi
mov byte [ebx + 0x52a], 0
call fcn.005c3070
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push edi
call fcn.005cb890
mov eax, 0x1c
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret