Function at 0x519418
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 0x51a005
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.005192d5
pop ecx
test eax, eax
jne 0x51a03e
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 0x5194ab
cmp dword [esi + 0x58], 5
jbe 0x5194ab
push dword [edi + 0x554]
mov edx, dword [ebp - 4]
mov ecx, edi
call fcn.005192a5
pop ecx
test eax, eax
je 0x519f18
mov edx, dword [esi + 0x50]
mov ecx, dword [esi + 0x68]
mov al, byte [ecx]
cmp al, 0xa
je 0x519d32
cmp al, 0xd
je 0x519d36
lea eax, [edx + 1]
mov dword [esi + 0x50], eax
test edx, edx
jne 0x5196a4
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x234]
mov eax, dword [eax + 0x3c]
test al, 1
je 0x51960b
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 0x5195c4
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 0x519531
cmp eax, dword [ebx]
jle 0x519539
mov eax, dword [ebx]
mov dword [edi + 0x8640], eax
xor edx, edx
cmp dword [edi + 0x2b8], edx
je 0x51959a
lea eax, [esi + 0x78]
cmp dword [eax], 0x190
jl 0x51959a
cmp dword [eax], 0x191
jne 0x51955e
cmp dword [ecx + 0x1d0], edx
jne 0x51959a
cmp dword [eax], 0x197
jne 0x51956e
cmp dword [ecx + 0x1d4], edx
jne 0x51959a
mov eax, dword [edi + 0x8670]
or eax, dword [edi + 0x8674]
je 0x519f3e
cmp dword [edi + 0x218], 1
jne 0x519f3e
cmp dword [esi + 0x78], 0x1a0
jne 0x519f3e
cmp dword [ebx], 0xa
jne 0x519657
push str.HTTP_1.0__assume_close_after_body_n
push edi
call fcn.00512948
mov eax, dword [ebp - 4]
xor edx, edx
pop ecx
pop ecx
mov dword [eax + 0x1c0], 1
jmp 0x51966e
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 0x51950f
mov edx, dword [esi + 0x68]
mov ecx, edi
call fcn.00519250
test eax, eax
je 0x51a038
mov dword [esi + 0x78], 0xc8
mov dword [ebx], 0xa
jmp 0x51950f
test eax, 0x40000
je 0x51a038
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 0x51a038
imul eax, dword [ebp - 0x10], 0xa
mov ecx, dword [ebp - 4]
add dword [ebx], eax
lea ebx, [ecx + 0x118]
mov dword [ebx], 0xb
jmp 0x519512
cmp dword [ebx], 0xb
jl 0x51966e
cmp dword [ecx + 0x1c0], edx
jne 0x51966e
mov dword [ecx + 0x27c], 1
mov eax, dword [esi + 0x78]
sub eax, 0xcc
je 0x51967d
sub eax, 0x64
jne 0x5196a4
cmp dword [edi + 0x208], edx
je 0x51968f
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 0x519753
cmp dword [edi + 0x318], 0
jne 0x519753
mov ebx, dword [esi + 0x68]
mov ecx, str.Content_Length:
push 0xf
mov edx, ebx
call fcn.00528406
pop ecx
test eax, eax
je 0x519753
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 0x51970b
cmp edx, ebx
jg 0x519f4a
jl 0x51970b
cmp eax, dword [edi + 0x280]
ja 0x519f4a
test edx, edx
jl 0x519731
jg 0x519715
test eax, eax
jb 0x519731
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.0051a8e6
add esp, 8
jmp 0x519cd2
mov ebx, dword [ebp - 4]
push edx
push eax
push str.Negative_content_length:__lld__closing_after_transfer_n
push edi
mov dword [ebx + 0x1c0], 1
call fcn.00512948
add esp, 0x10
jmp 0x519873
mov edx, dword [esi + 0x68]
mov ecx, str.Content_Type:
push 0xd
call fcn.00528406
pop ecx
test eax, eax
je 0x5197af
mov ecx, dword [esi + 0x68]
call fcn.00516c02
mov ebx, eax
test ebx, ebx
je 0x519f5e
cmp byte [ebx], 0
jne 0x51978b
push ebx
call dword [0x5cdc40]
pop ecx
jmp 0x519cd2
mov eax, dword [edi + 0x86d4]
test eax, eax
je 0x5197a4
push eax
call dword [0x5cdc40]
and dword [edi + 0x86d4], 0
pop ecx
mov dword [edi + 0x86d4], ebx
jmp 0x519cd2
mov ebx, dword [ebp - 4]
cmp dword [ebx + 0x118], 0xa
jne 0x5197e2
cmp dword [ebx + 0x1cc], 0
je 0x5197e2
mov ecx, dword [esi + 0x68]
mov edx, str.Proxy_Connection:
push str.keep_alive
call fcn.0051784c
pop ecx
test eax, eax
je 0x5197e2
push str.HTTP_1.0_proxy_connection_set_to_keep_alive__n
jmp 0x519841
cmp dword [ebx + 0x118], 0xb
jne 0x51981c
cmp dword [ebx + 0x1cc], 0
je 0x51981c
mov ecx, dword [esi + 0x68]
mov edx, str.Proxy_Connection:
push str.close
call fcn.0051784c
pop ecx
test eax, eax
je 0x51981c
mov dword [ebx + 0x1c0], 1
push str.HTTP_1.1_proxy_connection_set_close__n
jmp 0x519848
cmp dword [ebx + 0x118], 0xa
jne 0x519852
mov ecx, dword [esi + 0x68]
mov edx, str.Connection:
push str.keep_alive
call fcn.0051784c
pop ecx
test eax, eax
je 0x519852
push str.HTTP_1.0_connection_set_to_keep_alive__n
and dword [ebx + 0x1c0], 0
push edi
call fcn.00512948
pop ecx
pop ecx
jmp 0x519873
mov ecx, dword [esi + 0x68]
mov edx, str.Connection:
push str.close
call fcn.0051784c
pop ecx
test eax, eax
je 0x51987a
mov dword [ebx + 0x1c0], 1
mov ecx, ebx
jmp 0x519cd5
mov ebx, dword [esi + 0x68]
mov ecx, str.Transfer_Encoding:
push 0x12
mov edx, ebx
call fcn.00528406
pop ecx
test eax, eax
je 0x5199cd
add ebx, 0x12
jmp 0x5198ae
movzx eax, al
push eax
call dword [sym.imp.MSVCR120.dll_isspace]
pop ecx
test eax, eax
jne 0x5198ad
cmp byte [ebx], 0x2c
jne 0x5198b4
inc ebx
mov al, byte [ebx]
test al, al
jne 0x519899
push 7
mov edx, ebx
mov ecx, str.chunked
call fcn.00528406
pop ecx
test eax, eax
je 0x5198e6
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 0x519cd2
push 8
mov edx, ebx
mov ecx, str.identity
call fcn.00528406
pop ecx
test eax, eax
je 0x519912
and dword [esi + 0x88], 0
jmp 0x51999d
push 7
mov edx, ebx
mov ecx, str.deflate
call fcn.00528406
pop ecx
test eax, eax
je 0x519937
mov dword [esi + 0x88], 1
add ebx, 7
jmp 0x5198ae
push 4
mov edx, ebx
mov ecx, str.gzip
call fcn.00528406
pop ecx
test eax, eax
je 0x51995c
mov dword [esi + 0x88], 2
add ebx, 4
jmp 0x5198ae
push 6
mov edx, ebx
mov ecx, str.x_gzip
call fcn.00528406
pop ecx
test eax, eax
je 0x519981
mov dword [esi + 0x88], 2
add ebx, 6
jmp 0x5198ae
push 8
mov edx, ebx
mov ecx, str.compress
call fcn.00528406
pop ecx
test eax, eax
je 0x5199a5
push 3
pop eax
mov dword [esi + 0x88], eax
add ebx, 8
jmp 0x5198ae
push 0xa
mov edx, ebx
mov ecx, str.x_compress
call fcn.00528406
pop ecx
test eax, eax
je 0x519cd2
push 3
pop eax
mov dword [esi + 0x88], eax
add ebx, 0xa
jmp 0x5198ae
push 0x11
mov edx, ebx
mov ecx, str.Content_Encoding:
call fcn.00528406
pop ecx
test eax, eax
je 0x519aba
cmp dword [edi + 0x358], 0
je 0x519aba
add ebx, 0x11
jmp 0x519a06
movzx eax, al
push eax
call dword [sym.imp.MSVCR120.dll_isspace]
pop ecx
test eax, eax
je 0x519a0c
inc ebx
mov al, byte [ebx]
test al, al
jne 0x5199f6
push 8
mov edx, ebx
mov ecx, str.identity
call fcn.00528406
pop ecx
test eax, eax
je 0x519a2b
and dword [esi + 0x88], 0
jmp 0x519cd2
push 7
mov edx, ebx
mov ecx, str.deflate
call fcn.00528406
pop ecx
test eax, eax
je 0x519a4d
mov dword [esi + 0x88], 1
jmp 0x519cd2
push 4
mov edx, ebx
mov ecx, str.gzip
call fcn.00528406
pop ecx
test eax, eax
jne 0x519aab
push 6
mov edx, ebx
mov ecx, str.x_gzip
call fcn.00528406
pop ecx
test eax, eax
jne 0x519aab
push 8
mov edx, ebx
mov ecx, str.compress
call fcn.00528406
pop ecx
test eax, eax
jne 0x519a9d
push 0xa
mov edx, ebx
mov ecx, str.x_compress
call fcn.00528406
pop ecx
test eax, eax
je 0x519cd2
push 3
pop ecx
mov dword [esi + 0x88], ecx
jmp 0x519cd2
mov dword [esi + 0x88], 2
jmp 0x519cd2
push 0xe
mov edx, ebx
mov ecx, str.Content_Range:
call fcn.00528406
pop ecx
test eax, eax
je 0x519b26
add ebx, 0xe
jmp 0x519ae2
movzx eax, al
push eax
call dword [sym.imp.MSVCR120.dll_isdigit]
pop ecx
test eax, eax
jne 0x519ae8
inc ebx
mov al, byte [ebx]
test al, al
jne 0x519ad2
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 0x519cd2
mov ecx, dword [ebp - 4]
cmp dword [edi + 0x8674], edx
jne 0x519cd5
mov dword [esi + 0x6c], 1
jmp 0x519cd5
cmp dword [edi + 0x430], 0
je 0x519b90
push 0xb
mov edx, ebx
mov ecx, str.Set_Cookie:
call fcn.00528406
pop ecx
test eax, eax
je 0x519b90
push ecx
push 2
pop edx
mov ecx, edi
call fcn.00521160
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x264]
test eax, eax
jne 0x519b61
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.005152a6
add esp, 0x10
mov ecx, edi
push 2
pop edx
call fcn.00521193
jmp 0x519cd2
push 0xe
mov edx, ebx
mov ecx, str.Last_Modified:
call fcn.00528406
pop ecx
test eax, eax
je 0x519bef
xor eax, eax
cmp dword [edi + 0x208], eax
jne 0x519bb5
cmp dword [edi + 0x29c], eax
je 0x519bef
push eax
call dword [sym.imp.MSVCR120.dll__time64]
pop ecx
mov ecx, dword [esi + 0x68]
add ecx, 0xe
call fcn.0052e615
mov ecx, dword [ebp - 4]
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], edx
cmp dword [edi + 0x29c], 0
je 0x519cd5
mov dword [edi + 0x86b8], eax
jmp 0x519cd5
push 0x11
mov edx, ebx
mov ecx, str.WWW_Authenticate:
call fcn.00528406
pop ecx
test eax, eax
je 0x519c0d
mov edx, dword [esi + 0x78]
cmp edx, 0x191
je 0x519c2b
push 0x13
mov edx, ebx
mov ecx, str.Proxy_authenticate:
call fcn.00528406
pop ecx
test eax, eax
je 0x519c3a
mov edx, dword [esi + 0x78]
cmp edx, 0x197
jne 0x519c3a
mov ecx, dword [ebp - 4]
push ebx
call fcn.00517303
pop ecx
jmp 0x519cca
cmp dword [esi + 0x78], 0x12c
jl 0x519cb1
cmp dword [esi + 0x78], 0x190
jge 0x519cb1
push 9
mov edx, ebx
mov ecx, str.Location:
call fcn.00528406
pop ecx
test eax, eax
je 0x519cb1
cmp dword [edi + 0xd0], 0
jne 0x519cb1
mov ecx, ebx
call fcn.00516c02
test eax, eax
je 0x519f5e
cmp byte [eax], 0
jne 0x519c82
push eax
jmp 0x51977f
cmp dword [edi + 0x2bc], 0
mov dword [edi + 0xd0], eax
je 0x519cd2
push eax
call dword [0x5cd43c]
mov dword [edi + 0xd4], eax
pop ecx
test eax, eax
je 0x519f5e
mov ecx, dword [ebp - 4]
call fcn.00516dc9
jmp 0x519cca
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x234]
test dword [eax + 0x3c], 0x40000
je 0x519cd5
mov edx, ebx
call fcn.00521c95
test eax, eax
jne 0x51a03e
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 0x519d02
push ecx
push dword [esi + 0x58]
xor edx, edx
mov ecx, edi
push dword [esi + 0x68]
inc edx
call fcn.00512f67
add esp, 0xc
push dword [esi + 0x58]
mov ecx, dword [ebp - 4]
mov edx, ebx
push dword [esi + 0x68]
call fcn.00512cd2
pop ecx
pop ecx
test eax, eax
jne 0x51a03e
mov eax, dword [esi + 0x58]
add dword [edi + 0x86c0], eax
mov eax, dword [esi + 0x58]
add dword [edi + 0x48], eax
xor edx, edx
jmp 0x519ef0
cmp al, 0xd
jne 0x519d3c
lea eax, [ecx + 1]
mov dword [esi + 0x68], eax
mov eax, dword [esi + 0x68]
cmp byte [eax], 0xa
jne 0x519d48
inc eax
mov dword [esi + 0x68], eax
cmp dword [esi + 0x78], 0x64
jl 0x519d7d
cmp dword [esi + 0x78], 0xc7
jg 0x519d7d
mov ebx, dword [ebp - 4]
xor eax, eax
mov dword [esi + 0x48], 1
mov dword [esi + 0x50], eax
cmp dword [esi + 0x84], eax
je 0x519dd7
or dword [esi + 0xa8], 2
mov dword [esi + 0x84], eax
jmp 0x519dd7
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 0x519dd7
cmp dword [esi + 0xc8], ecx
jne 0x519dd7
cmp dword [ebx + 0x1c0], ecx
jne 0x519dd7
cmp dword [ebx + 0x118], 0xb
jl 0x519dd7
mov eax, dword [ebx + 0x234]
test dword [eax + 0x3c], 0x40000
jne 0x519dd7
cmp dword [edi + 0x218], 5
je 0x519dd7
push str.no_chunk__no_close__no_size._Assume_close_to_signal_end_n
push edi
call fcn.00512948
pop ecx
pop ecx
mov dword [ebx + 0x1c0], 1
mov ecx, ebx
call fcn.0051748f
test eax, eax
jne 0x519fef
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.00512cd2
pop ecx
pop ecx
test eax, eax
jne 0x51a03e
add dword [edi + 0x48], ebx
add dword [edi + 0x86c0], ebx
cmp dword [esi + 0x78], 0x64
mov eax, dword [edi + 0x48]
jl 0x519e33
cmp dword [esi + 0x78], 0xc7
jg 0x519e33
xor edx, edx
jmp 0x519e37
xor edx, edx
mov eax, edx
mov dword [edi + 0x4c], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], edx
jne 0x519eeb
mov ecx, dword [ebp - 4]
call fcn.00516f4a
test eax, eax
jne 0x51a03e
mov ecx, dword [ebp - 4]
xor edx, edx
cmp dword [esi + 0x78], 0x12c
jl 0x519eca
cmp dword [ecx + 0x1f8], edx
jne 0x519eca
cmp dword [ecx + 0x1c0], edx
jne 0x519eca
cmp dword [ecx + 0x1fc], edx
jne 0x519ed2
mov eax, dword [edi + 0x218]
add eax, 0xfffffffe
cmp eax, 2
ja 0x519eca
cmp dword [esi + 0xac], edx
jne 0x519eca
push str.HTTP_error_before_end_of_send__stop_sending_n
push edi
call fcn.00512948
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
xor eax, eax
inc eax
xor edx, edx
mov dword [ecx + 0x1c0], eax
and dword [esi + 0xa8], 0xfffffffd
mov dword [esi + 0xac], eax
cmp dword [edi + 0x8644], edx
je 0x519eca
push 3
pop eax
mov dword [esi + 0x84], eax
cmp dword [ecx + 0x1fc], edx
je 0x519ee8
push str.Keep_sending_data_to_get_tossed_away__n
push edi
call fcn.00512948
or dword [esi + 0xa8], 2
xor edx, edx
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp dword [esi + 0x48], edx
je 0x519f65
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 0x51a03c
mov eax, dword [esi + 0x5c]
cmp byte [eax], 0
jne 0x519429
jmp 0x51a03c
mov eax, dword [ebp + 8]
and dword [esi + 0x48], 0
cmp dword [eax], 0
je 0x519f30
mov dword [esi + 0x4c], 1
jmp 0x51a03c
mov dword [esi + 0x4c], 2
mov dword [eax], ebx
jmp 0x51a03c
mov ecx, edi
call fcn.00519383
jmp 0x51a000
push str.Maximum_file_size_exceeded
push edi
call fcn.005129bc
pop ecx
pop ecx
push 0x3f
jmp 0x51a002
push 0x1b
jmp 0x51a002
cmp dword [edi + 0x2d4], edx
je 0x519f75
mov dword [eax], 1
jmp 0x519f8c
cmp dword [esi + 0xc8], edx
je 0x519f8c
or dword [esi], 0xffffffff
or dword [esi + 4], 0xffffffff
or dword [esi + 0x10], 0xffffffff
or dword [esi + 0x14], 0xffffffff
cmp dword [esi], 0xffffffff
jne 0x519f97
cmp dword [esi + 4], 0xffffffff
je 0x519fb3
push dword [esi + 4]
mov ecx, edi
push dword [esi]
call fcn.0051a8e6
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 0x519fc6
cmp dword [esi + 0x14], edx
jne 0x519fc6
mov dword [eax], 1
cmp dword [eax], edx
je 0x519fd1
and dword [esi + 0xa8], 0xfffffffe
cmp dword [edi + 0x2e4], edx
je 0x51a03c
push dword [ebp - 4]
xor edx, edx
mov ecx, edi
push ebx
push dword [esi + 0x60]
inc edx
call fcn.00512f67
add esp, 0xc
jmp 0x51a03c
push dword [esi + 0x78]
push str.The_requested_URL_returned_error:__d
push edi
call fcn.005129bc
add esp, 0xc
push 0x16
pop eax
jmp 0x51a03e
push dword [eax]
call fcn.005192d5
pop ecx
test eax, eax
jne 0x51a03e
cmp dword [esi + 0x50], eax
jne 0x51a03c
cmp dword [esi + 0x58], 5
jbe 0x51a03c
push dword [edi + 0x554]
mov edx, dword [ebp - 4]
mov ecx, edi
call fcn.005192a5
pop ecx
test eax, eax
jne 0x51a03c
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