Function at 0x447d50
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
mov ebx, ecx
mov dword [ebp - 0x54], 0
push esi
push edi
mov edi, edx
mov dword [ebp - 0xc], ebx
mov esi, dword [ebx]
mov ecx, 0x36ee80
xorps xmm0, xmm0
mov dword [ebp - 0x44], edi
movlpd qword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
mov eax, dword [esi + 0x218]
test eax, eax
cmovne ecx, eax
mov eax, dword [ebx + edi*4 + 0x150]
mov dword [ebp - 0x4c], ecx
xor edx, edx
lea ecx, [edi + 0x170]
mov dword [ebp - 0x50], eax
lea ecx, [ebx + ecx*4]
mov dword [ebp - 0x34], edx
xor eax, eax
mov dword [ebp - 0x14], ecx
cmp dword [ecx], 2
mov dword [ebp - 0x48], eax
je 0x4487a3
mov dword [ebx + 0x2a0], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x18], eax
lea esp, [esp]
cmp dword [ecx], 0
je 0x448578
xor eax, eax
lea edi, [esi + 0x5ec]
mov dword [ebp - 8], eax
mov dword [ebp - 0x38], eax
mov eax, 1
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x10], eax
test eax, eax
je 0x44839e
test edx, edx
jne 0x4484f8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov ebx, edx
shr ebx, 6
imul eax, ebx, 0x3e8
sub ecx, eax
mov eax, dword [ebp - 0xc]
imul ecx, ecx, 0x3e8
mov edi, dword [eax + 0x140]
sub edi, ebx
sub ecx, dword [eax + 0x144]
mov eax, 0x10624dd3
imul ecx
imul ecx, edi, 0x3e8
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
add ecx, dword [ebp - 0x4c]
test ecx, ecx
jle 0x448430
mov ebx, dword [ebp - 0x50]
mov eax, 0x3e8
cmp ecx, eax
cmovl eax, ecx
or edx, 0xffffffff
push eax
push 0xffffffffffffffff
mov ecx, ebx
call fcn.00427890
add esp, 8
cmp eax, 0xffffffff
je 0x448362
mov edi, dword [ebp - 8]
test eax, eax
je 0x44827a
lea eax, [ebp - 0x3c]
mov edx, ebx
mov ebx, dword [ebp - 0xc]
mov ecx, ebx
push eax
mov eax, 0x4000
sub eax, edi
push eax
push dword [ebp - 0x20]
call fcn.00428770
add esp, 0xc
cmp eax, 0x51
je 0x44838c
test eax, eax
je 0x447ec4
mov dword [ebp - 0x10], 0
jmp 0x44837d
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x28], ecx
test ecx, ecx
jg 0x447f10
cmp dword [esi + 0x190], 0
mov dword [ebp - 0x10], 0
je 0x447ef6
cmp dword [esi + 0x8ed4], 0
je 0x447ef6
mov dword [ebx + 0x2a0], 1
jmp 0x44837d
push str.Proxy_CONNECT_aborted
push esi
mov dword [ebp - 0x34], 1
call fcn.004280e0
add esp, 8
jmp 0x44837d
add edi, ecx
xor eax, eax
cmp dword [ebp - 0x10], 1
mov dword [ebp - 8], edi
jle 0x447fb9
mov dword [ebp - 8], eax
lea edi, [esi + 0x5ec]
mov eax, dword [ebp - 0x18]
or eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edi
je 0x447f66
mov edi, dword [ebp - 0x18]
mov eax, ecx
cdq
sub edi, eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], edi
sbb eax, edx
mov dword [ebp - 0x1c], eax
test eax, eax
jg 0x44837a
jl 0x447f5a
test edi, edi
jne 0x44837a
mov dword [ebp - 0x10], 0
jmp 0x44837a
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
push ecx
mov edx, edi
mov ecx, ebx
call fcn.0044c150
add esp, 8
cmp eax, 0xffffffff
jne 0x447fa3
push str.chunk_reading_DONE_n
push esi
call fcn.00428020
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], 0
mov dword [eax], 2
jmp 0x448377
push dword [ebp - 0x28]
push str.Read__zd_bytes_of_chunk__continue_n
push esi
call fcn.00428020
add esp, 0xc
jmp 0x44837a
mov dword [ebp - 0x24], eax
test ecx, ecx
jle 0x44837d
mov edi, dword [ebp - 0x38]
mov edx, dword [ebp - 0x20]
lea ebx, [ebx]
inc edi
cmp byte [edx], 0xa
mov dword [ebp - 0x38], edi
jne 0x4481e7
cmp dword [esi + 0x35c], 0
je 0x447ffd
push ebx
mov ebx, dword [ebp - 0x30]
mov edx, 1
push edi
push ebx
mov ecx, esi
call fcn.004288f0
add esp, 0xc
jmp 0x448000
mov ebx, dword [ebp - 0x30]
cmp dword [esi + 0x340], 0
mov eax, 3
mov ecx, dword [ebp - 0xc]
mov edx, 2
push edi
cmovne edx, eax
push ebx
call fcn.004285c0
add dword [esi + 0x8f88], edi
add esp, 8
add dword [esi + 0x80], edi
test eax, eax
jne 0x4487d1
mov al, byte [ebx]
cmp al, 0xd
je 0x4481fc
cmp al, 0xa
je 0x4481fc
mov cl, byte [edi + ebx]
lea eax, [edi + ebx]
mov byte [ebp - 1], cl
mov edx, ebx
push 0x11
mov ecx, str.WWW_Authenticate:
mov dword [ebp - 0x30], eax
mov byte [eax], 0
call fcn.00445dc0
add esp, 4
test eax, eax
je 0x448078
mov eax, dword [esi + 0xc8]
cmp eax, 0x191
je 0x44809a
push 0x13
mov edx, ebx
mov ecx, str.Proxy_authenticate:
call fcn.00445dc0
add esp, 4
test eax, eax
je 0x4480e6
mov eax, dword [esi + 0xc8]
cmp eax, 0x197
jne 0x4480e6
xor ecx, ecx
cmp eax, 0x197
sete cl
mov dword [ebp - 0x38], ecx
mov ecx, ebx
call fcn.0042edc0
mov edi, eax
test edi, edi
je 0x4485eb
mov ebx, dword [ebp - 0xc]
mov ecx, ebx
mov edx, dword [ebp - 0x38]
push edi
call fcn.0042f630
add esp, 4
mov dword [ebp - 0x38], eax
push edi
call dword [0x4d75cc]
mov eax, dword [ebp - 0x38]
add esp, 4
test eax, eax
jne 0x4487d1
jmp 0x4481cb
push 0xf
mov edx, ebx
mov ecx, str.Content_Length:
call fcn.00445dc0
add esp, 4
test eax, eax
je 0x448116
push 0xa
lea eax, [ebx + 0xf]
push 0
push eax
call fcn.0048bc97
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
jmp 0x4481c8
push str.close
mov edx, str.Connection:
mov ecx, ebx
call fcn.0042fe10
add esp, 4
test eax, eax
je 0x44813a
mov dword [ebp - 0x2c], 1
jmp 0x4481c8
push str.chunked
mov edx, str.Transfer_Encoding:
mov ecx, ebx
call fcn.0042fe10
add esp, 4
test eax, eax
je 0x448181
push str.CONNECT_responded_chunked_n
push esi
call fcn.00428020
mov ebx, dword [ebp - 0xc]
add esp, 8
mov dword [ebp - 0x48], 1
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x20], 0
jmp 0x4481cb
push str.close
mov edx, str.Proxy_Connection:
mov ecx, ebx
call fcn.0042fe10
add esp, 4
test eax, eax
je 0x4481a2
mov dword [ebp - 0x2c], 1
jmp 0x4481c8
lea edi, [esi + 0xc8]
push edi
lea eax, [ebp - 0x54]
push eax
push str.HTTP_1._d__d
push ebx
call fcn.0048a3ba
add esp, 0x10
cmp eax, 2
jne 0x4481c8
mov eax, dword [edi]
mov dword [esi + 0x8f78], eax
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x30]
xor edi, edi
mov edx, dword [ebp - 0x20]
mov cl, byte [ebp - 1]
mov dword [ebp - 0x38], edi
mov byte [eax], cl
mov ecx, dword [ebp - 0x28]
lea eax, [edx + 1]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x24]
inc eax
inc edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], eax
cmp eax, ecx
jl 0x447fd0
jmp 0x44837a
xor edi, edi
lea eax, [esi + 0x5ec]
cmp dword [esi + 0xc8], 0x197
mov dword [ebp - 8], edi
mov dword [ebp - 0x20], eax
jne 0x448323
cmp dword [esi + 0x8ee4], edi
jne 0x448323
mov edi, dword [ebp - 0x18]
mov eax, edi
mov ecx, dword [ebp - 0x1c]
or eax, ecx
mov dword [ebp - 0x10], 2
je 0x448282
push ecx
push edi
push str.Ignore__I64d_bytes_of_response_body_n
push esi
call fcn.00428020
mov eax, dword [ebp - 0x28]
add esp, 0x10
sub eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
cdq
sub edi, eax
mov dword [ebp - 0x18], edi
sbb ecx, edx
mov dword [ebp - 0x1c], ecx
test ecx, ecx
jg 0x44826e
jl 0x448267
test edi, edi
jne 0x44826e
mov dword [ebp - 0x10], 0
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
mov dword [eax], 2
mov ebx, dword [ebp - 0xc]
jmp 0x44837d
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x448267
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x24]
sub eax, edi
push eax
push str._zd_bytes_of_chunk_left_n
push esi
mov dword [esi + 0x138], 1
call fcn.00428020
add esp, 0xc
cmp byte [ebx + 1], 0xa
jne 0x4482b5
inc ebx
inc edi
mov dword [ebp - 0x30], ebx
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x28]
lea edx, [ebx + 1]
sub eax, edi
push eax
call fcn.0044c150
add esp, 8
cmp eax, 0xffffffff
jne 0x448301
push str.chunk_reading_DONE_n
push esi
call fcn.00428020
mov edi, dword [ebp - 0x14]
add esp, 8
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], 0
mov dword [edi], 2
mov edi, dword [ebp - 8]
mov dword [eax], 2
jmp 0x44837d
push dword [ebp - 0x3c]
push str.Read__zd_bytes_of_chunk__continue_n
push esi
call fcn.00428020
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov dword [eax], 2
jmp 0x44837d
xor eax, eax
cmp dword [esi + 0x8f78], 0xc8
mov dword [ebp - 0x10], eax
jne 0x448271
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x24]
dec eax
je 0x448271
push eax
push str.Proxy_CONNECT_followed_by__zd_bytes_of_opaque_data._Data_ignored__known_bug_39_
push esi
call fcn.004280e0
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov ebx, dword [ebp - 0xc]
mov dword [eax], 2
jmp 0x44837d
push str.Proxy_CONNECT_aborted_due_to_select_poll_error
push esi
mov dword [ebp - 0x34], 1
call fcn.004280e0
mov ebx, dword [ebp - 0xc]
add esp, 8
mov edi, dword [ebp - 8]
mov ecx, ebx
call fcn.00433380
test eax, eax
jne 0x448424
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x34]
cmp edi, 0x4000
jb 0x447df5
test edx, edx
jne 0x4484f8
cmp dword [esi + 0x8f78], 0xc8
je 0x4483d2
mov ecx, ebx
call fcn.0042f1b0
test eax, eax
jne 0x4487d1
cmp dword [ebx + 0x248], eax
je 0x4483d2
mov dword [ebp - 0x2c], 1
jmp 0x4483d8
cmp dword [ebp - 0x2c], 0
je 0x4483e1
cmp dword [esi + 0x144], 0
jne 0x44844a
cmp dword [esi + 0x144], 0
mov ecx, dword [ebp - 0x14]
je 0x44849c
cmp dword [ecx], 2
jne 0x44840f
push 0
push str.TUNNEL_STATE_switched_to:__d_n
push esi
mov dword [ecx], 0
call fcn.00428020
mov ecx, dword [ebp - 0x14]
add esp, 0xc
cmp dword [esi + 0x144], 0
je 0x44849c
mov edx, dword [ebp - 0x34]
jmp 0x447dd0
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.004280e0
add esp, 8
mov eax, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x44]
mov eax, dword [ebx + 0x38]
mov edi, dword [ebx + edi*4 + 0x150]
test eax, eax
je 0x44847e
cmp edi, dword [ebx + 0x154]
jne 0x448504
cmp dword [ebx + 0x164], 0
je 0x448504
mov dword [ebx + 0x164], 0
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, edi
mov ecx, ebx
call fcn.0041bad0
mov eax, dword [ebp - 0x44]
mov dword [ebx + eax*4 + 0x150], 0xffffffff
mov eax, dword [esi + 0xc8]
cmp eax, 0xc8
je 0x448512
push eax
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push esi
call fcn.004280e0
add esp, 0xc
cmp dword [ebp - 0x2c], 0
je 0x4484d1
cmp dword [esi + 0x144], 0
je 0x4484d1
mov dword [ebx + 0x2a0], 1
mov eax, dword [esi + 0x144]
test eax, eax
je 0x4484ef
push eax
call dword [0x4d75cc]
add esp, 4
mov dword [esi + 0x144], 0
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
mov eax, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push dword [ebx + 0x3c]
call eax
add esp, 8
jmp 0x44848e
mov eax, dword [ebp - 0x14]
mov dword [eax], 2
mov eax, dword [ebx + 0x2d0]
test eax, eax
je 0x448539
push eax
call dword [0x4d75cc]
add esp, 4
mov dword [ebx + 0x2d0], 0
push str.Proxy_replied_OK_to_CONNECT_request_n
mov dword [ebx + 0x2d0], 0
push esi
mov dword [esi + 0x8ed8], 1
call fcn.00428020
add esp, 8
mov dword [esi + 0x138], 0
mov dword [ebx + 0x284], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
movzx eax, ax
push eax
push dword [ebp + 8]
mov dword [ebp - 0x48], eax
push str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
push esi
call fcn.00428020
mov eax, dword [esi + 0x144]
add esp, 0x10
test eax, eax
je 0x4485b1
push eax
call dword [0x4d75cc]
add esp, 4
mov dword [esi + 0x144], 0
push 0xc
push 1
call dword [0x4d75d4]
mov edi, eax
add esp, 8
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x4485eb
push dword [ebp - 0x48]
push dword [ebp + 8]
push str._s:_hu
call fcn.0041f060
add esp, 0xc
mov dword [ebp - 0x50], eax
test eax, eax
jne 0x4485f7
push edi
call dword [0x4d75cc]
add esp, 4
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
push eax
mov edx, str.CONNECT
mov ecx, ebx
call fcn.0042f520
push dword [ebp - 0x50]
mov edi, eax
call dword [0x4d75cc]
add esp, 0xc
test edi, edi
jne 0x4487c3
cmp dword [ebx + 0x134], 1
mov ecx, 0x4b9050
push dword [ebp - 0x48]
mov eax, 0x4b9054
mov edi, 0x4b2e3e
cmovne eax, ecx
mov dword [ebp - 0x38], edi
mov ecx, dword [ebx + 0x260]
mov edx, edi
mov dword [ebp - 0x4c], eax
test ecx, ecx
mov eax, 0x4b35a0
mov dword [ebp - 0x3c], edi
cmove eax, edx
push eax
push dword [ebp + 8]
mov eax, str.___:
cmove eax, edx
push eax
push str._s_s_s:_hu
call fcn.0041f060
add esp, 0x14
mov dword [ebp - 0x34], eax
test eax, eax
je 0x4486a9
mov edx, str.Host:
mov ecx, esi
call fcn.0042ed10
test eax, eax
jne 0x4486c1
push dword [ebp - 0x34]
push str.Host:__s_r_n
call fcn.0041f060
mov edi, eax
add esp, 8
mov dword [ebp - 0x38], edi
test edi, edi
jne 0x4486c1
push dword [ebp - 0x34]
call dword [0x4d75cc]
add esp, 4
push dword [ebp - 0x1c]
call dword [0x4d75cc]
add esp, 4
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, str.Proxy_Connection:
mov ecx, esi
call fcn.0042ed10
test eax, eax
mov ecx, str.Proxy_Connection:_Keep_Alive_r_n
mov eax, 0x4b2e3e
mov edx, str.User_Agent:
cmovne ecx, eax
mov dword [ebp - 0x50], ecx
mov ecx, esi
call fcn.0042ed10
test eax, eax
jne 0x448700
cmp dword [esi + 0x41c], eax
je 0x448700
mov eax, dword [ebx + 0x2d4]
mov dword [ebp - 0x3c], eax
push dword [ebp - 0x50]
mov eax, dword [ebx + 0x2d0]
mov ecx, 0x4b2e3e
push dword [ebp - 0x3c]
test eax, eax
cmovne ecx, eax
push ecx
push edi
push dword [ebp - 0x4c]
push dword [ebp - 0x34]
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push dword [ebp - 0x1c]
call fcn.0042fcb0
mov edi, eax
add esp, 0x20
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x448746
cmp byte [eax], 0
je 0x448746
push eax
call dword [0x4d75cc]
add esp, 4
push dword [ebp - 0x34]
call dword [0x4d75cc]
add esp, 4
test edi, edi
jne 0x4487ac
mov edx, dword [ebp - 0x1c]
mov ecx, ebx
call fcn.00430240
mov edi, eax
test edi, edi
jne 0x4487ac
push 0x4b75f4
push dword [ebp - 0x1c]
call fcn.0042fcb0
mov edi, eax
add esp, 8
test edi, edi
jne 0x4487ac
push dword [ebp - 0x44]
mov ecx, dword [ebp - 0x1c]
mov edx, ebx
push eax
lea eax, [esi + 0x8f8c]
push eax
call fcn.0042f9b0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4487ac
mov eax, dword [ebp - 0x14]
mov dword [eax], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Failed_sending_CONNECT_to_proxy
push esi
call fcn.004280e0
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x1c]
call dword [0x4d75cc]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret