Function at 0x4dfb20
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [esi]
mov dword [ebp - 0x38], eax
mov edx, dword [edi + 0x1e0]
mov dword [ebp - 0x28], edx
cmp edx, eax
jne 0x4dfb4a
mov dword [ebp - 0x28], 0x36ee80
cmp dword [esi + ecx*4 + 0x4cc], 2
mov edx, dword [esi + ecx*4 + 0x140]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], eax
je 0x4e04f4
mov dword [esi + 0x210], eax
jmp 0x4dfb80
cmp dword [esi + ecx*4 + 0x4cc], eax
je 0x4e0174
lea ebx, [edi + 0x5ac]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 0
je 0x4e00c3
cmp dword [ebp - 0x24], 0
jne 0x4e0493
mov eax, dword [esi + 0x134]
mov ecx, dword [esi + 0x130]
push eax
push ecx
call fcn.004c2720
push edx
push eax
call fcn.004c2750
mov ecx, dword [ebp - 0x28]
sub ecx, eax
add esp, 0x10
test ecx, ecx
jle 0x4e015a
cmp ecx, 0x3e8
jl 0x4dfbee
mov ecx, 0x3e8
mov edx, dword [ebp - 0x2c]
push ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.004c1770
add esp, 0x10
cmp eax, 0xffffffff
je 0x4e008a
test eax, eax
je 0x4e009f
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x4000
sub ecx, dword [ebp - 0x18]
push edx
mov edx, dword [ebp - 0x2c]
call fcn.004c23a0
add esp, 8
cmp eax, 0x51
je 0x4e00b3
xor ecx, ecx
cmp eax, ecx
je 0x4dfc45
mov dword [ebp - 8], ecx
jmp 0x4e009f
mov eax, dword [ebp - 0xc]
cmp eax, ecx
jg 0x4dfc7a
mov dword [ebp - 8], ecx
cmp dword [edi + 0x158], ecx
je 0x4dfc70
cmp dword [edi + 0x864c], ecx
je 0x4dfc70
mov eax, esi
mov dword [eax + 0x210], 1
jmp 0x4e009f
push str.Proxy_CONNECT_aborted
jmp 0x4e008f
add dword [ebp - 0x18], eax
cmp dword [ebp - 8], 1
jle 0x4dfd29
mov esi, dword [ebp - 0x40]
mov dword [ebp - 0x18], ecx
lea ecx, [edi + 0x5ac]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x3c]
mov edx, esi
or edx, ecx
je 0x4dfcc8
cdq
sub esi, eax
sbb ecx, edx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], ecx
test ecx, ecx
jg 0x4e009f
jl 0x4dfcbc
test esi, esi
jne 0x4e009f
mov dword [ebp - 8], 0
jmp 0x4e009f
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
push ecx
push edx
mov dword [ebp - 0x14], 0
call fcn.004e1e30
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4dfd12
push str.chunk_reading_DONE_n
push edi
call fcn.004c1df0
mov ecx, dword [ebp + 0xc]
mov eax, esi
mov dword [ebp - 8], 0
mov dword [eax + ecx*4 + 0x4cc], 2
jmp 0x4e009c
mov edx, dword [ebp - 0x14]
push edx
push str.Read__zd_bytes_of_chunk__continue_n
push edi
call fcn.004c1df0
add esp, 0xc
jmp 0x4e009f
mov dword [ebp - 0x14], ecx
cmp eax, ecx
jle 0x4e009f
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
inc esi
cmp byte [eax], 0xa
mov dword [ebp - 0x20], esi
jne 0x4dff29
cmp dword [edi + 0x324], 0
je 0x4dfd62
mov ecx, dword [ebp + 8]
push ecx
push esi
push ebx
push 1
mov ecx, edi
call fcn.004c2520
add esp, 0x10
cmp dword [edi + 0x308], 0
mov eax, 2
je 0x4dfd75
mov eax, 3
push ebx
push eax
mov eax, dword [ebp + 8]
mov ecx, esi
call fcn.004c21f0
add dword [edi + 0x8700], esi
add dword [edi + 0x80], esi
add esp, 8
test eax, eax
jne 0x4e04f6
mov al, byte [ebx]
cmp al, 0xd
je 0x4dff41
cmp al, 0xa
je 0x4dff41
mov dl, byte [esi + ebx]
mov byte [ebp - 1], dl
mov eax, 0x11
mov ecx, ebx
mov edx, str.WWW_Authenticate:
mov byte [esi + ebx], 0
call fcn.004dc100
test eax, eax
je 0x4dfdd6
mov eax, dword [edi + 0xc8]
cmp eax, 0x191
je 0x4dfdf8
mov eax, 0x13
mov ecx, ebx
mov edx, str.Proxy_authenticate:
call fcn.004dc100
test eax, eax
je 0x4dfe44
mov eax, dword [edi + 0xc8]
cmp eax, 0x197
jne 0x4dfe44
xor ecx, ecx
cmp eax, 0x197
sete cl
mov eax, ebx
mov dword [ebp - 0x34], ecx
call fcn.004c8720
mov esi, eax
test esi, esi
je 0x4e01d8
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp + 8]
push edx
push eax
mov eax, esi
call fcn.004c8f10
push esi
mov dword [ebp - 0x34], eax
call dword [0x56e84c]
add esp, 0xc
cmp dword [ebp - 0x34], 0
jne 0x4e03f9
mov esi, dword [ebp - 0x20]
jmp 0x4dff1a
mov eax, 0xf
mov ecx, ebx
mov edx, str.Content_Length:
call fcn.004dc100
test eax, eax
je 0x4dfe74
push 0xa
lea ecx, [ebx + 0xf]
push 0
push ecx
call fcn.0051291e
add esp, 0xc
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
jmp 0x4dff1a
push str.close
mov ecx, str.Connection:
mov eax, ebx
call fcn.004c94a0
add esp, 4
test eax, eax
je 0x4dfe98
mov dword [ebp - 0x1c], 1
jmp 0x4dff1a
push str.chunked
mov ecx, str.Transfer_Encoding:
mov eax, ebx
call fcn.004c94a0
add esp, 4
test eax, eax
je 0x4dfecf
push str.CONNECT_responded_chunked_n
push edi
call fcn.004c1df0
mov eax, dword [ebp + 8]
add esp, 8
mov dword [ebp - 0x30], 1
call fcn.004e1e20
jmp 0x4dff1a
push str.close
mov ecx, str.Proxy_Connection:
mov eax, ebx
call fcn.004c94a0
add esp, 4
test eax, eax
je 0x4dfef0
mov dword [ebp - 0x1c], 1
jmp 0x4dff1a
lea eax, [edi + 0xc8]
push eax
lea edx, [ebp - 0x38]
push edx
push str.HTTP_1._d__d
push ebx
call fcn.004fac06
add esp, 0x10
cmp eax, 2
jne 0x4dff1a
mov eax, dword [edi + 0xc8]
mov dword [edi + 0x86f0], eax
mov cl, byte [ebp - 1]
mov byte [esi + ebx], cl
mov ebx, dword [ebp - 0x10]
xor esi, esi
mov dword [ebp - 0x20], esi
inc ebx
mov eax, dword [ebp - 0x14]
inc dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0xc]
jl 0x4dfd37
jmp 0x4e009f
xor ecx, ecx
cmp dword [edi + 0xc8], 0x197
lea eax, [edi + 0x5ac]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], eax
jne 0x4e004e
cmp dword [edi + 0x865c], ecx
jne 0x4e004e
mov eax, dword [ebp - 0x40]
or eax, dword [ebp - 0x3c]
mov dword [ebp - 8], 2
je 0x4dffbf
mov esi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
push esi
push ecx
push str.Ignore__lld_bytes_of_response_body_n
push edi
call fcn.004c1df0
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
add esp, 0x10
cdq
sub dword [ebp - 0x40], eax
sbb esi, edx
mov dword [ebp - 0x3c], esi
test esi, esi
jg 0x4e0077
jl 0x4dffb3
cmp dword [ebp - 0x40], 0
ja 0x4e0077
mov dword [ebp - 8], 0
jmp 0x4e0077
cmp dword [ebp - 0x30], ecx
je 0x4e0049
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0x14]
mov esi, 1
push edx
push str._zd_bytes_of_chunk_left_n
push edi
mov dword [edi + 0x100], esi
call fcn.004c1df0
add esp, 0xc
cmp byte [ebx + 1], 0xa
jne 0x4dfff2
inc ebx
add dword [ebp - 0x14], esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
lea ecx, [ebx + 1]
push eax
push ecx
call fcn.004e1e30
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4e0038
push str.chunk_reading_DONE_n
push edi
call fcn.004c1df0
mov eax, dword [ebp + 0xc]
mov edx, esi
add esp, 8
mov dword [ebp - 8], 0
mov dword [edx + eax*4 + 0x4cc], 2
jmp 0x4e0077
mov ecx, dword [ebp - 0xc]
push ecx
push str.Read__zd_bytes_of_chunk__continue_n
push edi
call fcn.004c1df0
jmp 0x4e0074
mov dword [ebp - 8], ecx
jmp 0x4e0077
cmp dword [edi + 0x86f0], 0xc8
mov dword [ebp - 8], ecx
jne 0x4e0077
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
dec eax
cmp eax, ecx
je 0x4e0077
push eax
push str.Proxy_CONNECT_followed_by__zd_bytes_of_opaque_data._Data_ignored__known_bug_39_
push edi
call fcn.004c1e70
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [eax + edx*4 + 0x4cc], 2
jmp 0x4e009f
push str.Proxy_CONNECT_aborted_due_to_select_poll_error
push edi
mov dword [ebp - 0x24], 1
call fcn.004c1e70
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
call fcn.004cc850
add esp, 4
test eax, eax
jne 0x4e0403
cmp dword [ebp - 0x18], 0x4000
mov esi, dword [ebp + 8]
jb 0x4dfba3
cmp dword [ebp - 0x24], 0
jne 0x4e0493
cmp dword [edi + 0x86f0], 0xc8
je 0x4e00fb
push esi
call fcn.004c8af0
add esp, 4
test eax, eax
jne 0x4e04f6
cmp dword [esi + 0x1b8], eax
je 0x4e00fb
mov dword [ebp - 0x1c], 1
jmp 0x4e0101
cmp dword [ebp - 0x1c], 0
je 0x4e010e
cmp dword [edi + 0x10c], 0
jne 0x4e040f
cmp dword [edi + 0x10c], 0
mov ebx, dword [ebp + 0xc]
je 0x4e0435
cmp dword [esi + ebx*4 + 0x4cc], 2
jne 0x4e0143
push 0
push str.TUNNEL_STATE_switched_to:__d_n
push edi
mov dword [esi + ebx*4 + 0x4cc], 0
call fcn.004c1df0
add esp, 0xc
cmp dword [edi + 0x10c], 0
je 0x4e0435
mov ecx, dword [ebp + 0xc]
xor eax, eax
jmp 0x4dfb80
push str.Proxy_CONNECT_aborted_due_to_timeout
push edi
call fcn.004c1e70
add esp, 8
mov eax, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx esi, word [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
push esi
push ebx
push str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
push edi
call fcn.004c1df0
mov eax, dword [edi + 0x10c]
add esp, 0x10
test eax, eax
je 0x4e01a9
push eax
call dword [0x56e84c]
add esp, 4
mov dword [edi + 0x10c], 0
call fcn.004c9190
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4e01d8
push esi
push ebx
push str._s:_hu
call sym.kometabrowsercmd.exe_curl_maprintf
add esp, 0xc
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x4e01e4
mov edx, dword [ebp - 0x18]
push edx
call dword [0x56e84c]
add esp, 4
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp + 8]
push 1
push eax
push str.CONNECT
call fcn.004c8e00
mov ecx, dword [ebp - 0x30]
add esp, 0xc
push ecx
mov ebx, eax
call dword [0x56e84c]
add esp, 4
test ebx, ebx
jne 0x4e03cc
cmp dword [esi + 0x124], 1
mov ecx, 0x53ff09
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], 0x552c2c
je 0x4e0236
mov dword [ebp - 0x28], 0x552c28
mov esi, dword [esi + 0x1d0]
mov edx, 0x54b060
test esi, esi
jne 0x4e0249
mov edx, ecx
jmp 0x4e024e
mov ecx, str.___:
movzx eax, word [ebp + 0x14]
push eax
push edx
mov edx, dword [ebp + 0x10]
push edx
push ecx
push str._s_s_s:_hu
call sym.kometabrowsercmd.exe_curl_maprintf
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4e0283
mov eax, dword [ebp - 0x18]
push eax
call dword [0x56e84c]
add esp, 4
lea eax, [esi + 0x1b]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov ebx, str.Host:
call fcn.004c86d0
add esp, 4
test eax, eax
jne 0x4e02cd
push esi
push str.Host:__s_r_n
call sym.kometabrowsercmd.exe_curl_maprintf
add esp, 8
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x4e02cd
push esi
call dword [0x56e84c]
mov ecx, dword [ebp - 0x18]
add esp, 4
push ecx
call dword [0x56e84c]
add esp, 4
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov ebx, str.Proxy_Connection:
call fcn.004c86d0
add esp, 4
test eax, eax
jne 0x4e02e6
mov dword [ebp - 0x30], str.Proxy_Connection:_Keep_Alive_r_n
push edi
mov ebx, str.User_Agent:
call fcn.004c86d0
add esp, 4
test eax, eax
jne 0x4e030c
cmp dword [edi + 0x3e4], eax
je 0x4e030c
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x244]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x240]
test eax, eax
jne 0x4e031e
mov eax, 0x53ff09
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
push edx
mov edx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x28]
push edx
push eax
push esi
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push ecx
call fcn.004c9350
add esp, 0x20
cmp dword [ebp - 0x14], 0
mov ebx, eax
je 0x4e035d
mov edx, dword [ebp - 0x14]
cmp byte [edx], 0
je 0x4e035d
mov eax, edx
push eax
call dword [0x56e84c]
add esp, 4
push esi
call dword [0x56e84c]
add esp, 4
test ebx, ebx
jne 0x4e03b5
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 0x18]
push ecx
mov ebx, esi
call fcn.004c97b0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4e03b5
push 0x55111c
push esi
call fcn.004c9350
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4e03b5
mov ebx, dword [ebp + 8]
push eax
lea edx, [edi + 0x8704]
push edx
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.004c91a0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4e03e2
push str.Failed_sending_CONNECT_to_proxy
push edi
call fcn.004c1e70
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
push eax
call dword [0x56e84c]
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov dword [ecx + esi*4 + 0x4cc], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x34]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebx + edx*4 + 0x140]
mov eax, ebx
call fcn.004c0890
mov eax, dword [ebp + 0xc]
mov dword [ebx + eax*4 + 0x140], 0xffffffff
mov esi, ebx
mov ebx, eax
mov eax, dword [edi + 0xc8]
cmp eax, 0xc8
je 0x4e049f
push eax
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push edi
call fcn.004c1e70
add esp, 0xc
cmp dword [ebp - 0x1c], 0
je 0x4e046a
cmp dword [edi + 0x10c], 0
je 0x4e046a
mov dword [esi + 0x210], 1
mov eax, dword [edi + 0x10c]
test eax, eax
je 0x4e0488
push eax
call dword [0x56e84c]
add esp, 4
mov dword [edi + 0x10c], 0
mov dword [esi + ebx*4 + 0x4cc], 0
mov eax, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + ebx*4 + 0x4cc], 2
mov eax, dword [esi + 0x240]
test eax, eax
je 0x4e04c8
push eax
call dword [0x56e84c]
add esp, 4
xor ebx, ebx
mov dword [esi + 0x240], ebx
jmp 0x4e04ca
xor ebx, ebx
push str.Proxy_replied_OK_to_CONNECT_request_n
mov dword [esi + 0x240], ebx
push edi
mov dword [edi + 0x8650], 1
call fcn.004c1df0
mov dword [edi + 0x100], ebx
add esp, 8
mov dword [esi + 0x1f4], ebx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret