Function at 0x41efc0
Capabilities:
Check http status code

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x48]
xor esi, esi
mov dword [esp + 0x38], esi
mov ebp, dword [edi]
mov eax, dword [ebp + 0x168]
cmp eax, esi
mov dword [esp + 0x2c], eax
jne 0x41efe9
mov dword [esp + 0x2c], 0x36ee80
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov byte [esp + 0x12], 0
mov ecx, dword [edi + eax*4 + 0xd4]
mov byte [esp + 0x13], 0
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], esi
mov byte [edi + 0x13e], 0
mov al, byte [edi + 0x135]
test al, al
jne 0x41f219
mov ebx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
and ebx, 0xffff
push ebx
push edx
push str.Establish_HTTP_proxy_tunnel_to__s:_d_n
push ebp
call fcn.00412fe0
mov eax, dword [ebp + 0xc4]
add esp, 0x10
cmp eax, esi
je 0x41f05b
push eax
call dword [0x4303c0]
add esp, 4
mov dword [ebp + 0xc4], esi
call fcn.0041fc00
mov esi, eax
test esi, esi
mov dword [esp + 0x24], esi
je 0x41f7c2
mov eax, dword [esp + 0x50]
push ebx
push eax
push str._s:_d
call fcn.00415420
add esp, 0xc
mov dword [esp + 0x1c], eax
test eax, eax
je 0x41f792
push 1
push eax
push str.CONNECT
push edi
call fcn.0041f8f0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x41f1ec
mov ecx, dword [esp + 0x48]
mov esi, 0x4350f8
mov edi, esi
mov dword [esp + 0x18], esi
mov eax, dword [ecx + 0xbc]
mov dword [esp + 0x14], 0x4331f4
cmp eax, 1
je 0x41f0d2
mov dword [esp + 0x14], 0x4331f0
push str.Host:
push ebp
call fcn.0041f8a0
add esp, 8
test eax, eax
jne 0x41f100
mov edx, dword [esp + 0x1c]
push edx
push str.Host:__s_r_n
call fcn.00415420
mov edi, eax
add esp, 8
test edi, edi
je 0x41f7a9
push str.Proxy_Connection:
push ebp
call fcn.0041f8a0
add esp, 8
test eax, eax
jne 0x41f11a
mov dword [esp + 0x18], str.Proxy_Connection:_Keep_Alive_r_n
push str.User_Agent:
push ebp
call fcn.0041f8a0
add esp, 8
test eax, eax
jne 0x41f140
mov eax, dword [ebp + 0x2f4]
test eax, eax
je 0x41f140
mov eax, dword [esp + 0x48]
mov esi, dword [eax + 0x150]
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx + 0x14c]
test eax, eax
jne 0x41f153
mov eax, 0x4350f8
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x28]
push esi
push eax
mov eax, dword [esp + 0x20]
push edi
push eax
push ebx
push ecx
push str.CONNECT__s:_d_HTTP__s_r_n_s_s_s_s
push edx
call fcn.0041fec0
add esp, 0x24
mov esi, eax
test edi, edi
je 0x41f18d
cmp byte [edi], 0
je 0x41f18d
push edi
call dword [0x4303c0]
add esp, 4
test esi, esi
jne 0x41f1d6
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x48]
push edi
push ebx
call fcn.004201e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41f1d6
push 0x42fadc
push edi
call fcn.0041fec0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41f1d6
mov eax, dword [esp + 0x4c]
lea ecx, [ebp + 0x8568]
push eax
push esi
push ecx
push ebx
push edi
call fcn.0041fc10
add esp, 0x14
mov esi, eax
xor edi, edi
test esi, esi
je 0x41f1f0
push str.Failed_sending_CONNECT_to_proxy
push ebp
call fcn.00413050
add esp, 8
jmp 0x41f1f0
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
push edx
call dword [0x4303c0]
push edi
call fcn.0040a440
add esp, 8
test esi, esi
jne 0x41f7cf
mov eax, dword [esp + 0x48]
mov edi, eax
mov byte [eax + 0x135], 1
mov ecx, dword [edi + 0xc8]
mov edx, dword [edi + 0xc4]
push ecx
push edx
call fcn.004232c0
push edx
push eax
call fcn.004232f0
mov ecx, dword [esp + 0x3c]
add esp, 0x10
sub ecx, eax
test ecx, ecx
jle 0x41f7d9
cmp dword [ebp + 0x438], 2
jne 0x41f265
mov edx, dword [esp + 0x30]
push esi
push 0xffffffffffffffff
push edx
call fcn.00424c50
add esp, 0xc
test eax, eax
je 0x41f892
lea eax, [ebp + 0x454]
xor ebx, ebx
mov byte [edi + 0x135], 0
mov dword [esp + 0x1c], eax
mov esi, eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41f712
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x41f853
mov eax, dword [edi + 0xc8]
mov ecx, dword [edi + 0xc4]
push eax
push ecx
call fcn.004232c0
push edx
push eax
call fcn.004232f0
mov ecx, dword [esp + 0x3c]
add esp, 0x10
sub ecx, eax
test ecx, ecx
jle 0x41f777
cmp ecx, 0x3e8
jl 0x41f2da
mov ecx, 0x3e8
mov edx, dword [esp + 0x30]
push ecx
push 0xffffffffffffffff
push edx
call fcn.00424c50
add esp, 0xc
cmp eax, 0xffffffff
je 0x41f6db
test eax, eax
je 0x41f6f1
mov edx, dword [esp + 0x1c]
mov ecx, 0x4000
lea eax, [esp + 0x20]
sub ecx, ebx
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
push eax
push edi
call fcn.004134d0
add esp, 0x14
test eax, eax
jl 0x41f706
xor ecx, ecx
cmp eax, ecx
je 0x41f332
mov dword [esp + 0x14], ecx
jmp 0x41f6f1
mov eax, dword [esp + 0x20]
cmp eax, ecx
jg 0x41f36e
mov eax, dword [ebp + 0xfc]
mov dword [esp + 0x14], ecx
cmp eax, ecx
je 0x41f35c
cmp dword [ebp + 0x84ec], ecx
je 0x41f35c
mov byte [edi + 0x13e], 1
jmp 0x41f6f1
mov dword [esp + 0x28], 1
push str.Proxy_CONNECT_aborted
jmp 0x41f6e8
mov edx, dword [esp + 0x14]
add ebx, eax
cmp edx, 1
mov dword [esp + 0x24], ebx
jle 0x41f3e5
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x24], ecx
lea ecx, [ebp + 0x454]
or edx, ebx
mov dword [esp + 0x1c], ecx
jne 0x41f629
lea edx, [esp + 0x34]
xor ebx, ebx
push edx
push eax
push ecx
push edi
mov dword [esp + 0x44], ebx
call fcn.004257b0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x41f3cd
push str.chunk_reading_DONE_n
push ebp
call fcn.00412fe0
add esp, 8
mov dword [esp + 0x14], ebx
jmp 0x41f6f1
mov eax, dword [esp + 0x34]
push eax
push str.Read__d_bytes_of_chunk__continue_n
push ebp
call fcn.00412fe0
add esp, 0xc
jmp 0x41f6f1
xor ebx, ebx
test eax, eax
mov dword [esp + 0x34], ebx
jle 0x41f6f1
mov ecx, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x1c]
cmp byte [ecx], 0xa
jne 0x41f5b1
mov al, byte [ebp + 0x260]
test al, al
je 0x41f425
mov edx, dword [esp + 0x18]
push edi
push edx
push esi
push 1
push ebp
call fcn.00413640
add esp, 0x14
mov cl, byte [ebp + 0x253]
mov eax, 2
test cl, cl
je 0x41f439
mov eax, 3
mov ecx, dword [esp + 0x18]
push ecx
push esi
push eax
push edi
call fcn.004132c0
add esp, 0x10
test eax, eax
jne 0x41f894
mov al, byte [esi]
cmp al, 0xd
je 0x41f5cc
cmp al, 0xa
je 0x41f5cc
mov eax, dword [esp + 0x18]
push 0x11
push esi
push str.WWW_Authenticate:
mov bl, byte [eax + esi]
mov byte [eax + esi], 0
call fcn.00422eb0
add esp, 0xc
test eax, eax
je 0x41f48f
mov eax, dword [ebp + 0x90]
cmp eax, 0x191
je 0x41f4b0
push 0x13
push esi
push str.Proxy_authenticate:
call fcn.00422eb0
add esp, 0xc
test eax, eax
je 0x41f4c8
mov eax, dword [ebp + 0x90]
cmp eax, 0x197
jne 0x41f4c8
push esi
push eax
push edi
call fcn.0041ed00
add esp, 0xc
test eax, eax
jne 0x41f894
jmp 0x41f58f
push 0xf
push esi
push str.Content_Length:
call fcn.00422eb0
add esp, 0xc
test eax, eax
je 0x41f4f9
push 0xa
lea edx, [esi + 0xf]
push 0
push edx
call fcn.00426240
add esp, 0xc
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
jmp 0x41f58f
push str.close
push str.Connection:
push esi
call fcn.0041eee0
add esp, 0xc
test al, al
je 0x41f517
mov byte [esp + 0x12], 1
jmp 0x41f58f
push str.chunked
push str.Transfer_Encoding:
push esi
call fcn.0041eee0
add esp, 0xc
test al, al
je 0x41f549
push str.CONNECT_responded_chunked_n
push ebp
call fcn.00412fe0
push edi
mov byte [esp + 0x1f], 1
call fcn.00425790
add esp, 0xc
jmp 0x41f58f
push str.close
push str.Proxy_Connection:
push esi
call fcn.0041eee0
add esp, 0xc
test al, al
je 0x41f567
mov byte [esp + 0x12], 1
jmp 0x41f58f
lea edi, [ebp + 0x90]
lea eax, [esp + 0x38]
push edi
push eax
push str.HTTP_1._d__d
push esi
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
cmp eax, 2
jne 0x41f58f
mov ecx, dword [edi]
mov dword [ebp + 0x8554], ecx
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x48]
mov dword [esp + 0x18], 0
mov byte [edx + esi], bl
mov ebx, dword [esp + 0x34]
lea esi, [eax + 1]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
inc ecx
inc ebx
cmp ebx, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x34], ebx
jl 0x41f3f3
jmp 0x41f6f1
lea eax, [ebp + 0x454]
xor ecx, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x90]
cmp eax, 0x197
mov dword [esp + 0x24], ecx
jne 0x41f329
mov al, byte [ebp + 0x84f4]
test al, al
jne 0x41f329
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
or edx, eax
mov dword [esp + 0x14], 2
je 0x41f65f
mov ecx, dword [esp + 0x3c]
push eax
push ecx
push str.Ignore__lld_bytes_of_response_body_n
push ebp
call fcn.00412fe0
mov eax, dword [esp + 0x30]
add esp, 0x10
sub eax, ebx
mov ecx, dword [esp + 0x3c]
cdq
sub ecx, eax
mov eax, dword [esp + 0x40]
sbb eax, edx
mov dword [esp + 0x3c], ecx
test eax, eax
mov dword [esp + 0x40], eax
jg 0x41f6f1
jl 0x41f652
mov eax, ecx
test eax, eax
ja 0x41f6f1
mov dword [esp + 0x14], 0
jmp 0x41f6f1
mov al, byte [esp + 0x13]
test al, al
je 0x41f329
mov edx, dword [esp + 0x20]
mov byte [ebp + 0xbd], 1
sub edx, ebx
push edx
push str._d_bytes_of_chunk_left_n
push ebp
call fcn.00412fe0
mov al, byte [esi + 1]
add esp, 0xc
cmp al, 0xa
jne 0x41f690
inc esi
inc ebx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x20]
sub ecx, ebx
push eax
lea edx, [esi + 1]
push ecx
push edx
push edi
call fcn.004257b0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x41f6c6
push str.chunk_reading_DONE_n
push ebp
call fcn.00412fe0
add esp, 8
mov dword [esp + 0x14], 0
jmp 0x41f6f1
mov eax, dword [esp + 0x20]
push eax
push str.Read__d_bytes_of_chunk__continue_n
push ebp
call fcn.00412fe0
add esp, 0xc
jmp 0x41f6f1
mov dword [esp + 0x28], 1
push str.Proxy_CONNECT_aborted_due_to_select_poll_error
push ebp
call fcn.00413050
add esp, 8
push edi
call fcn.004242a0
add esp, 4
test eax, eax
jne 0x41f7f4
mov ebx, dword [esp + 0x24]
cmp ebx, 0x4000
jb 0x41f28a
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x41f853
cmp dword [ebp + 0x8554], 0xc8
je 0x41f74c
push edi
call fcn.0041eac0
add esp, 4
test eax, eax
jne 0x41f894
mov al, byte [edi + 0x128]
test al, al
je 0x41f74c
mov byte [esp + 0x12], 1
jmp 0x41f754
mov al, byte [esp + 0x12]
test al, al
je 0x41f762
mov eax, dword [ebp + 0xc4]
test eax, eax
jne 0x41f801
mov eax, dword [ebp + 0xc4]
test eax, eax
je 0x41f81e
xor esi, esi
jmp 0x41f015
push str.Proxy_CONNECT_aborted_due_to_timeout
push ebp
call fcn.00413050
add esp, 8
mov eax, 0x38
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
push esi
call dword [0x4303c0]
add esp, 4
mov eax, 0x1b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov ecx, dword [esp + 0x24]
push ecx
call dword [0x4303c0]
mov edx, dword [esp + 0x20]
push edx
call dword [0x4303c0]
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x34
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push ebp
call fcn.00413050
add esp, 8
mov eax, 0x38
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
pop edi
pop esi
pop ebp
mov eax, 0x2a
pop ebx
add esp, 0x34
ret
mov esi, dword [esp + 0x4c]
mov eax, dword [edi + esi*4 + 0xd4]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + esi*4 + 0xd4], 0xffffffff
mov eax, dword [ebp + 0x90]
cmp eax, 0xc8
je 0x41f860
push eax
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push ebp
call fcn.00413050
mov al, byte [esp + 0x1e]
add esp, 0xc
test al, al
je 0x41f853
mov eax, dword [ebp + 0xc4]
test eax, eax
je 0x41f853
mov byte [edi + 0x13e], 1
pop edi
pop esi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x34
ret
mov ecx, dword [edi + 0x14c]
push ecx
call fcn.0040a440
push str.Proxy_replied_OK_to_CONNECT_request_n
mov dword [edi + 0x14c], 0
push ebp
mov byte [ebp + 0x84f0], 1
call fcn.00412fe0
add esp, 0xc
mov byte [ebp + 0xbd], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret