Function at 0x51771e
Capabilities:
Check http status code
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
lea esi, [edi + 0x18]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x5c]
mov dword [esi + 0x60], eax
push dword [ecx]
push 0xa
push eax
call dword [sym.imp.MSVCR120.dll_memchr]
mov ebx, eax
add esp, 0xc
mov eax, dword [ebp + 8]
mov edx, esi
mov dword [esi + 0x64], ebx
mov ecx, edi
test ebx, ebx
je 0x51830b
sub ebx, dword [esi + 0x5c]
inc ebx
sub dword [eax], ebx
mov eax, dword [esi + 0x64]
inc eax
mov dword [esi + 0x5c], eax
sub eax, dword [esi + 0x60]
push eax
call fcn.005175db
pop ecx
test eax, eax
jne 0x518344
mov eax, dword [esi + 0x54]
mov edx, dword [esi + 0x50]
mov dword [esi + 0x64], eax
mov eax, dword [edi + 0x554]
mov dword [esi + 0x68], eax
test edx, edx
jne 0x5177b1
cmp dword [esi + 0x58], 5
jbe 0x5177b1
push dword [edi + 0x554]
mov edx, dword [ebp - 4]
mov ecx, edi
call fcn.005175ab
pop ecx
test eax, eax
je 0x51821e
mov edx, dword [esi + 0x50]
mov ecx, dword [esi + 0x68]
mov al, byte [ecx]
cmp al, 0xa
je 0x518038
cmp al, 0xd
je 0x51803c
lea eax, [edx + 1]
mov dword [esi + 0x50], eax
test edx, edx
jne 0x5179aa
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x238]
mov eax, dword [eax + 0x3c]
test al, 1
je 0x517911
lea eax, [esi + 0x78]
push eax
lea ebx, [edx + 0x118]
push ebx
lea eax, [ebp - 0xc]
push eax
push str._HTTP__d._d__3d
push ecx
call dword [sym.imp.MSVCR120.dll_sscanf]
add esp, 0x14
cmp eax, 3
jne 0x5178ca
imul eax, dword [ebp - 0xc], 0xa
add dword [ebx], eax
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x78]
mov dword [edi + 0x86ac], eax
mov eax, dword [ebx]
mov dword [edi + 0x86b4], eax
mov eax, dword [edi + 0x8640]
test eax, eax
je 0x517837
cmp eax, dword [ebx]
jle 0x51783f
mov eax, dword [ebx]
mov dword [edi + 0x8640], eax
xor edx, edx
cmp dword [edi + 0x2b8], edx
je 0x5178a0
lea eax, [esi + 0x78]
cmp dword [eax], 0x190
jl 0x5178a0
cmp dword [eax], 0x191
jne 0x517864
cmp dword [ecx + 0x1d4], edx
jne 0x5178a0
cmp dword [eax], 0x197
jne 0x517874
cmp dword [ecx + 0x1d8], edx
jne 0x5178a0
mov eax, dword [edi + 0x8670]
or eax, dword [edi + 0x8674]
je 0x518244
cmp dword [edi + 0x218], 1
jne 0x518244
cmp dword [esi + 0x78], 0x1a0
jne 0x518244
cmp dword [ebx], 0xa
jne 0x51795d
push str.HTTP_1.0__assume_close_after_body_n
push edi
call fcn.00510c4e
mov eax, dword [ebp - 4]
xor edx, edx
pop ecx
pop ecx
mov dword [eax + 0x1c4], 1
jmp 0x517974
lea eax, [esi + 0x78]
push eax
push str._HTTP__3d
push dword [esi + 0x68]
call dword [sym.imp.MSVCR120.dll_sscanf]
add esp, 0xc
mov dword [ebx], 0xa
test eax, eax
jne 0x517815
mov edx, dword [esi + 0x68]
mov ecx, edi
call fcn.00517556
test eax, eax
je 0x51833e
mov dword [esi + 0x78], 0xc8
mov dword [ebx], 0xa
jmp 0x517815
test eax, 0x40000
je 0x51833e
lea eax, [esi + 0x78]
push eax
lea ebx, [edx + 0x11c]
push ebx
lea eax, [ebp - 0x10]
push eax
push str._RTSP__d._d__3d
push ecx
call dword [sym.imp.MSVCR120.dll_sscanf]
add esp, 0x14
cmp eax, 3
jne 0x51833e
imul eax, dword [ebp - 0x10], 0xa
mov ecx, dword [ebp - 4]
add dword [ebx], eax
lea ebx, [ecx + 0x118]
mov dword [ebx], 0xb
jmp 0x517818
cmp dword [ebx], 0xb
jl 0x517974
cmp dword [ecx + 0x1c4], edx
jne 0x517974
mov dword [ecx + 0x280], 1
mov eax, dword [esi + 0x78]
sub eax, 0xcc
je 0x517983
sub eax, 0x64
jne 0x5179aa
cmp dword [edi + 0x208], edx
je 0x517995
mov dword [edi + 0x86bc], 1
mov dword [esi], edx
mov dword [esi + 4], edx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], edx
mov dword [esi + 0xb4], 1
cmp dword [esi + 0xb4], 0
jne 0x517a59
cmp dword [edi + 0x318], 0
jne 0x517a59
mov ebx, dword [esi + 0x68]
mov ecx, str.Content_Length:
push 0xf
mov edx, ebx
call fcn.0052670c
pop ecx
test eax, eax
je 0x517a59
push 0xa
lea eax, [ebx + 0xf]
push 0
push eax
call dword [sym.imp.MSVCR120.dll__strtoi64]
mov ecx, dword [edi + 0x280]
add esp, 0xc
mov ebx, dword [edi + 0x284]
or ecx, ebx
je 0x517a11
cmp edx, ebx
jg 0x518250
jl 0x517a11
cmp eax, dword [edi + 0x280]
ja 0x518250
test edx, edx
jl 0x517a37
jg 0x517a1b
test eax, eax
jb 0x517a37
push edx
push eax
mov ecx, edi
mov dword [esi], eax
mov dword [esi + 4], edx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
call fcn.00518bec
add esp, 8
jmp 0x517fd8
mov ebx, dword [ebp - 4]
push edx
push eax
push str.Negative_content_length:__lld__closing_after_transfer_n
push edi
mov dword [ebx + 0x1c4], 1
call fcn.00510c4e
add esp, 0x10
jmp 0x517b79
mov edx, dword [esi + 0x68]
mov ecx, str.Content_Type:
push 0xd
call fcn.0052670c
pop ecx
test eax, eax
je 0x517ab5
mov ecx, dword [esi + 0x68]
call fcn.00514f08
mov ebx, eax
test ebx, ebx
je 0x518264
cmp byte [ebx], 0
jne 0x517a91
push ebx
call dword [0x5c6c40]
pop ecx
jmp 0x517fd8
mov eax, dword [edi + 0x86d4]
test eax, eax
je 0x517aaa
push eax
call dword [0x5c6c40]
and dword [edi + 0x86d4], 0
pop ecx
mov dword [edi + 0x86d4], ebx
jmp 0x517fd8
mov ebx, dword [ebp - 4]
cmp dword [ebx + 0x118], 0xa
jne 0x517ae8
cmp dword [ebx + 0x1d0], 0
je 0x517ae8
mov ecx, dword [esi + 0x68]
mov edx, str.Proxy_Connection:
push str.keep_alive
call fcn.00515b52
pop ecx
test eax, eax
je 0x517ae8
push str.HTTP_1.0_proxy_connection_set_to_keep_alive__n
jmp 0x517b47
cmp dword [ebx + 0x118], 0xb
jne 0x517b22
cmp dword [ebx + 0x1d0], 0
je 0x517b22
mov ecx, dword [esi + 0x68]
mov edx, str.Proxy_Connection:
push str.close
call fcn.00515b52
pop ecx
test eax, eax
je 0x517b22
mov dword [ebx + 0x1c4], 1
push str.HTTP_1.1_proxy_connection_set_close__n
jmp 0x517b4e
cmp dword [ebx + 0x118], 0xa
jne 0x517b58
mov ecx, dword [esi + 0x68]
mov edx, str.Connection:
push str.keep_alive
call fcn.00515b52
pop ecx
test eax, eax
je 0x517b58
push str.HTTP_1.0_connection_set_to_keep_alive__n
and dword [ebx + 0x1c4], 0
push edi
call fcn.00510c4e
pop ecx
pop ecx
jmp 0x517b79
mov ecx, dword [esi + 0x68]
mov edx, str.Connection:
push str.close
call fcn.00515b52
pop ecx
test eax, eax
je 0x517b80
mov dword [ebx + 0x1c4], 1
mov ecx, ebx
jmp 0x517fdb
mov ebx, dword [esi + 0x68]
mov ecx, str.Transfer_Encoding:
push 0x12
mov edx, ebx
call fcn.0052670c
pop ecx
test eax, eax
je 0x517cd3
add ebx, 0x12
jmp 0x517bb4
movzx eax, al
push eax
call dword [sym.imp.MSVCR120.dll_isspace]
pop ecx
test eax, eax
jne 0x517bb3
cmp byte [ebx], 0x2c
jne 0x517bba
inc ebx
mov al, byte [ebx]
test al, al
jne 0x517b9f
push 7
mov edx, ebx
mov ecx, str.chunked
call fcn.0052670c
pop ecx
test eax, eax
je 0x517bec
mov eax, dword [ebp - 4]
mov dword [esi + 0xc8], 1
and dword [eax + 0x18], 0
and dword [eax + 0x24], 0
add ebx, 7
mov dword [eax + 0x1c], 1
cmp dword [esi + 0x88], 0
jne 0x517fd8
push 8
mov edx, ebx
mov ecx, str.identity
call fcn.0052670c
pop ecx
test eax, eax
je 0x517c18
and dword [esi + 0x88], 0
jmp 0x517ca3
push 7
mov edx, ebx
mov ecx, str.deflate
call fcn.0052670c
pop ecx
test eax, eax
je 0x517c3d
mov dword [esi + 0x88], 1
add ebx, 7
jmp 0x517bb4
push 4
mov edx, ebx
mov ecx, str.gzip
call fcn.0052670c
pop ecx
test eax, eax
je 0x517c62
mov dword [esi + 0x88], 2
add ebx, 4
jmp 0x517bb4
push 6
mov edx, ebx
mov ecx, str.x_gzip
call fcn.0052670c
pop ecx
test eax, eax
je 0x517c87
mov dword [esi + 0x88], 2
add ebx, 6
jmp 0x517bb4
push 8
mov edx, ebx
mov ecx, str.compress
call fcn.0052670c
pop ecx
test eax, eax
je 0x517cab
push 3
pop eax
mov dword [esi + 0x88], eax
add ebx, 8
jmp 0x517bb4
push 0xa
mov edx, ebx
mov ecx, str.x_compress
call fcn.0052670c
pop ecx
test eax, eax
je 0x517fd8
push 3
pop eax
mov dword [esi + 0x88], eax
add ebx, 0xa
jmp 0x517bb4
push 0x11
mov edx, ebx
mov ecx, str.Content_Encoding:
call fcn.0052670c
pop ecx
test eax, eax
je 0x517dc0
cmp dword [edi + 0x358], 0
je 0x517dc0
add ebx, 0x11
jmp 0x517d0c
movzx eax, al
push eax
call dword [sym.imp.MSVCR120.dll_isspace]
pop ecx
test eax, eax
je 0x517d12
inc ebx
mov al, byte [ebx]
test al, al
jne 0x517cfc
push 8
mov edx, ebx
mov ecx, str.identity
call fcn.0052670c
pop ecx
test eax, eax
je 0x517d31
and dword [esi + 0x88], 0
jmp 0x517fd8
push 7
mov edx, ebx
mov ecx, str.deflate
call fcn.0052670c
pop ecx
test eax, eax
je 0x517d53
mov dword [esi + 0x88], 1
jmp 0x517fd8
push 4
mov edx, ebx
mov ecx, str.gzip
call fcn.0052670c
pop ecx
test eax, eax
jne 0x517db1
push 6
mov edx, ebx
mov ecx, str.x_gzip
call fcn.0052670c
pop ecx
test eax, eax
jne 0x517db1
push 8
mov edx, ebx
mov ecx, str.compress
call fcn.0052670c
pop ecx
test eax, eax
jne 0x517da3
push 0xa
mov edx, ebx
mov ecx, str.x_compress
call fcn.0052670c
pop ecx
test eax, eax
je 0x517fd8
push 3
pop ecx
mov dword [esi + 0x88], ecx
jmp 0x517fd8
mov dword [esi + 0x88], 2
jmp 0x517fd8
push 0xe
mov edx, ebx
mov ecx, str.Content_Range:
call fcn.0052670c
pop ecx
test eax, eax
je 0x517e2c
add ebx, 0xe
jmp 0x517de8
movzx eax, al
push eax
call dword [sym.imp.MSVCR120.dll_isdigit]
pop ecx
test eax, eax
jne 0x517dee
inc ebx
mov al, byte [ebx]
test al, al
jne 0x517dd8
push 0xa
push 0
push ebx
call dword [sym.imp.MSVCR120.dll__strtoi64]
mov dword [esi + 0x70], eax
add esp, 0xc
mov dword [esi + 0x74], edx
mov eax, dword [edi + 0x8670]
cmp eax, dword [esi + 0x70]
jne 0x517fd8
mov ecx, dword [ebp - 4]
cmp dword [edi + 0x8674], edx
jne 0x517fdb
mov dword [esi + 0x6c], 1
jmp 0x517fdb
cmp dword [edi + 0x430], 0
je 0x517e96
push 0xb
mov edx, ebx
mov ecx, str.Set_Cookie:
call fcn.0052670c
pop ecx
test eax, eax
je 0x517e96
push ecx
push 2
pop edx
mov ecx, edi
call fcn.0051f466
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x268]
test eax, eax
jne 0x517e67
mov eax, dword [ecx + 0x80]
push dword [edi + 0x8658]
mov edx, dword [edi + 0x430]
mov ecx, edi
push eax
mov eax, dword [esi + 0x68]
add eax, 0xb
push eax
push 1
call fcn.005135ac
add esp, 0x10
mov ecx, edi
push 2
pop edx
call fcn.0051f499
jmp 0x517fd8
push 0xe
mov edx, ebx
mov ecx, str.Last_Modified:
call fcn.0052670c
pop ecx
test eax, eax
je 0x517ef5
xor eax, eax
cmp dword [edi + 0x208], eax
jne 0x517ebb
cmp dword [edi + 0x29c], eax
je 0x517ef5
push eax
call dword [sym.imp.MSVCR120.dll__time64]
pop ecx
mov ecx, dword [esi + 0x68]
add ecx, 0xe
call fcn.0052c943
mov ecx, dword [ebp - 4]
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], edx
cmp dword [edi + 0x29c], 0
je 0x517fdb
mov dword [edi + 0x86b8], eax
jmp 0x517fdb
push 0x11
mov edx, ebx
mov ecx, str.WWW_Authenticate:
call fcn.0052670c
pop ecx
test eax, eax
je 0x517f13
mov edx, dword [esi + 0x78]
cmp edx, 0x191
je 0x517f31
push 0x13
mov edx, ebx
mov ecx, str.Proxy_authenticate:
call fcn.0052670c
pop ecx
test eax, eax
je 0x517f40
mov edx, dword [esi + 0x78]
cmp edx, 0x197
jne 0x517f40
mov ecx, dword [ebp - 4]
push ebx
call fcn.00515609
pop ecx
jmp 0x517fd0
cmp dword [esi + 0x78], 0x12c
jl 0x517fb7
cmp dword [esi + 0x78], 0x190
jge 0x517fb7
push 9
mov edx, ebx
mov ecx, str.Location:
call fcn.0052670c
pop ecx
test eax, eax
je 0x517fb7
cmp dword [edi + 0xd0], 0
jne 0x517fb7
mov ecx, ebx
call fcn.00514f08
test eax, eax
je 0x518264
cmp byte [eax], 0
jne 0x517f88
push eax
jmp 0x517a85
cmp dword [edi + 0x2bc], 0
mov dword [edi + 0xd0], eax
je 0x517fd8
push eax
call dword [0x5c643c]
mov dword [edi + 0xd4], eax
pop ecx
test eax, eax
je 0x518264
mov ecx, dword [ebp - 4]
call fcn.005150cf
jmp 0x517fd0
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x238]
test dword [eax + 0x3c], 0x40000
je 0x517fdb
mov edx, ebx
call fcn.0051ff9b
test eax, eax
jne 0x518344
mov ecx, dword [ebp - 4]
cmp dword [edi + 0x2c8], 0
push 2
pop ebx
push 3
pop eax
cmovne ebx, eax
cmp dword [edi + 0x2e4], 0
je 0x518008
push ecx
push dword [esi + 0x58]
xor edx, edx
mov ecx, edi
push dword [esi + 0x68]
inc edx
call fcn.0051126d
add esp, 0xc
push dword [esi + 0x58]
mov ecx, dword [ebp - 4]
mov edx, ebx
push dword [esi + 0x68]
call fcn.00510fd8
pop ecx
pop ecx
test eax, eax
jne 0x518344
mov eax, dword [esi + 0x58]
add dword [edi + 0x86c0], eax
mov eax, dword [esi + 0x58]
add dword [edi + 0x48], eax
xor edx, edx
jmp 0x5181f6
cmp al, 0xd
jne 0x518042
lea eax, [ecx + 1]
mov dword [esi + 0x68], eax
mov eax, dword [esi + 0x68]
cmp byte [eax], 0xa
jne 0x51804e
inc eax
mov dword [esi + 0x68], eax
cmp dword [esi + 0x78], 0x64
jl 0x518083
cmp dword [esi + 0x78], 0xc7
jg 0x518083
mov ebx, dword [ebp - 4]
xor eax, eax
mov dword [esi + 0x48], 1
mov dword [esi + 0x50], eax
cmp dword [esi + 0x84], eax
je 0x5180dd
or dword [esi + 0xa8], 2
mov dword [esi + 0x84], eax
jmp 0x5180dd
mov eax, dword [esi]
xor ecx, ecx
and eax, dword [esi + 4]
mov ebx, dword [ebp - 4]
mov dword [esi + 0x48], ecx
cmp eax, 0xffffffff
jne 0x5180dd
cmp dword [esi + 0xc8], ecx
jne 0x5180dd
cmp dword [ebx + 0x1c4], ecx
jne 0x5180dd
cmp dword [ebx + 0x118], 0xb
jl 0x5180dd
mov eax, dword [ebx + 0x238]
test dword [eax + 0x3c], 0x40000
jne 0x5180dd
cmp dword [edi + 0x218], 5
je 0x5180dd
push str.no_chunk__no_close__no_size._Assume_close_to_signal_end_n
push edi
call fcn.00510c4e
pop ecx
pop ecx
mov dword [ebx + 0x1c4], 1
mov ecx, ebx
call fcn.00515795
test eax, eax
jne 0x5182f5
cmp dword [edi + 0x2c8], eax
mov ebx, dword [esi + 0x68]
mov ecx, dword [ebp - 4]
push 2
pop edx
push 3
pop eax
cmovne edx, eax
mov eax, dword [edi + 0x554]
sub ebx, eax
push ebx
push eax
call fcn.00510fd8
pop ecx
pop ecx
test eax, eax
jne 0x518344
add dword [edi + 0x48], ebx
add dword [edi + 0x86c0], ebx
cmp dword [esi + 0x78], 0x64
mov eax, dword [edi + 0x48]
jl 0x518139
cmp dword [esi + 0x78], 0xc7
jg 0x518139
xor edx, edx
jmp 0x51813d
xor edx, edx
mov eax, edx
mov dword [edi + 0x4c], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], edx
jne 0x5181f1
mov ecx, dword [ebp - 4]
call fcn.00515250
test eax, eax
jne 0x518344
mov ecx, dword [ebp - 4]
xor edx, edx
cmp dword [esi + 0x78], 0x12c
jl 0x5181d0
cmp dword [ecx + 0x1fc], edx
jne 0x5181d0
cmp dword [ecx + 0x1c4], edx
jne 0x5181d0
cmp dword [ecx + 0x200], edx
jne 0x5181d8
mov eax, dword [edi + 0x218]
add eax, 0xfffffffe
cmp eax, 2
ja 0x5181d0
cmp dword [esi + 0xac], edx
jne 0x5181d0
push str.HTTP_error_before_end_of_send__stop_sending_n
push edi
call fcn.00510c4e
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
xor eax, eax
inc eax
xor edx, edx
mov dword [ecx + 0x1c4], eax
and dword [esi + 0xa8], 0xfffffffd
mov dword [esi + 0xac], eax
cmp dword [edi + 0x8644], edx
je 0x5181d0
push 3
pop eax
mov dword [esi + 0x84], eax
cmp dword [ecx + 0x200], edx
je 0x5181ee
push str.Keep_sending_data_to_get_tossed_away__n
push edi
call fcn.00510c4e
or dword [esi + 0xa8], 2
xor edx, edx
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp dword [esi + 0x48], edx
je 0x51826b
mov eax, dword [edi + 0x554]
mov dword [esi + 0x54], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x58], edx
cmp dword [eax], edx
jne 0x518342
mov eax, dword [esi + 0x5c]
cmp byte [eax], 0
jne 0x51772f
jmp 0x518342
mov eax, dword [ebp + 8]
and dword [esi + 0x48], 0
cmp dword [eax], 0
je 0x518236
mov dword [esi + 0x4c], 1
jmp 0x518342
mov dword [esi + 0x4c], 2
mov dword [eax], ebx
jmp 0x518342
mov ecx, edi
call fcn.00517689
jmp 0x518306
push str.Maximum_file_size_exceeded
push edi
call fcn.00510cc2
pop ecx
pop ecx
push 0x3f
jmp 0x518308
push 0x1b
jmp 0x518308
cmp dword [edi + 0x2d4], edx
je 0x51827b
mov dword [eax], 1
jmp 0x518292
cmp dword [esi + 0xc8], edx
je 0x518292
or dword [esi], 0xffffffff
or dword [esi + 4], 0xffffffff
or dword [esi + 0x10], 0xffffffff
or dword [esi + 0x14], 0xffffffff
cmp dword [esi], 0xffffffff
jne 0x51829d
cmp dword [esi + 4], 0xffffffff
je 0x5182b9
push dword [esi + 4]
mov ecx, edi
push dword [esi]
call fcn.00518bec
mov eax, dword [esi]
add esp, 8
mov dword [esi + 0x10], eax
xor edx, edx
mov eax, dword [esi + 4]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
cmp dword [esi + 0x10], edx
jne 0x5182cc
cmp dword [esi + 0x14], edx
jne 0x5182cc
mov dword [eax], 1
cmp dword [eax], edx
je 0x5182d7
and dword [esi + 0xa8], 0xfffffffe
cmp dword [edi + 0x2e4], edx
je 0x518342
push dword [ebp - 4]
xor edx, edx
mov ecx, edi
push ebx
push dword [esi + 0x60]
inc edx
call fcn.0051126d
add esp, 0xc
jmp 0x518342
push dword [esi + 0x78]
push str.The_requested_URL_returned_error:__d
push edi
call fcn.00510cc2
add esp, 0xc
push 0x16
pop eax
jmp 0x518344
push dword [eax]
call fcn.005175db
pop ecx
test eax, eax
jne 0x518344
cmp dword [esi + 0x50], eax
jne 0x518342
cmp dword [esi + 0x58], 5
jbe 0x518342
push dword [edi + 0x554]
mov edx, dword [ebp - 4]
mov ecx, edi
call fcn.005175ab
pop ecx
test eax, eax
jne 0x518342
mov dword [esi + 0x4c], 2
and dword [esi + 0x48], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret