Function at 0x414550
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov eax, dword [esi + 0x5c]
mov dword [esi + 0x60], eax
push dword [ecx]
push 0xa
push eax
call fcn.0042d360
add esp, 0xc
mov dword [esi + 0x64], eax
test eax, eax
je 0x41506d
sub eax, dword [esi + 0x5c]
mov ecx, dword [ebp + 0x14]
inc eax
mov dword [ebp - 0x10], eax
sub dword [ecx], eax
mov ecx, dword [esi + 0x64]
mov eax, dword [esi + 0x58]
inc ecx
mov dword [esi + 0x5c], ecx
sub ecx, dword [esi + 0x60]
mov edx, dword [edi + 0x460]
add eax, ecx
mov dword [ebp + 0x10], ecx
cmp eax, edx
jb 0x4145f4
lea eax, [eax + eax*2]
lea ecx, [edx + edx]
shr eax, 1
mov edx, dword [esi + 0x54]
cmp eax, ecx
cmova ecx, eax
mov eax, dword [edi + 0x45c]
push ecx
sub edx, eax
mov dword [ebp - 4], ecx
push eax
mov dword [ebp - 8], edx
call dword [0x49a008]
add esp, 8
test eax, eax
je 0x4150b8
mov ecx, dword [ebp - 4]
mov dword [edi + 0x45c], eax
add eax, dword [ebp - 8]
mov dword [edi + 0x460], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x54], eax
push ecx
push dword [esi + 0x60]
push dword [esi + 0x54]
call fcn.0042a190
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add dword [esi + 0x54], ecx
mov eax, dword [esi + 0x54]
add dword [esi + 0x58], ecx
mov byte [eax], 0
cmp dword [esi + 0x50], 0
mov eax, dword [esi + 0x54]
mov dword [esi + 0x64], eax
mov eax, dword [edi + 0x45c]
mov dword [esi + 0x68], eax
jne 0x414644
cmp dword [esi + 0x58], 5
jbe 0x414644
push dword [edi + 0x45c]
push edi
call fcn.00413d40
add esp, 8
test al, al
je 0x414f72
mov edx, dword [esi + 0x68]
mov al, byte [edx]
cmp al, 0xa
je 0x414dd2
cmp al, 0xd
je 0x414dd6
mov ecx, dword [esi + 0x50]
mov ebx, dword [ebp + 0xc]
lea eax, [ecx + 1]
mov dword [esi + 0x50], eax
test ecx, ecx
jne 0x4147f1
lea ecx, [esi + 0x78]
push ecx
lea eax, [ebx + 0xc0]
push eax
lea eax, [ebp - 0xc]
push eax
push str._HTTP__d._d__3d
push edx
call fcn.004119a0
add esp, 0x14
cmp eax, 3
jne 0x4146a1
mov eax, dword [ebp - 0xc]
lea ecx, [ebx + 0xc0]
lea eax, [eax + eax*4]
add eax, eax
add dword [ecx], eax
jmp 0x4146f0
lea eax, [esi + 0x78]
push eax
push str._HTTP__3d
push dword [esi + 0x68]
call fcn.004119a0
add esp, 0xc
mov dword [ebx + 0xc0], 0xa
lea ecx, [ebx + 0xc0]
test eax, eax
jne 0x4146f0
push dword [esi + 0x68]
push edi
call fcn.00413d40
add esp, 8
test al, al
je 0x415127
lea ecx, [ebx + 0xc0]
mov dword [esi + 0x78], 0xc8
mov dword [ecx], 0xa
mov eax, dword [esi + 0x78]
mov dword [edi + 0x8560], eax
mov eax, dword [ecx]
mov dword [edi + 0x8568], eax
mov eax, dword [edi + 0x8530]
test eax, eax
je 0x41470f
cmp eax, dword [ecx]
jle 0x414717
mov eax, dword [ecx]
mov dword [edi + 0x8530], eax
cmp byte [edi + 0x260], 0
je 0x414778
mov edx, dword [esi + 0x78]
cmp edx, 0x190
jl 0x414778
cmp edx, 0x191
jne 0x41473c
cmp byte [ebx + 0x12c], 0
jne 0x414778
cmp edx, 0x197
jne 0x41474d
cmp byte [ebx + 0x12d], 0
jne 0x414778
mov eax, dword [edi + 0x8550]
or eax, dword [edi + 0x8554]
je 0x415050
cmp dword [edi + 0x1e0], 1
jne 0x415050
cmp edx, 0x1a0
jne 0x415050
mov eax, dword [ecx]
cmp eax, 0xa
jne 0x414796
push str.HTTP_1.0__assume_close_after_body_n
push edi
call fcn.0041a550
add esp, 8
mov byte [ebx + 0x128], 1
jmp 0x4147ab
cmp eax, 0xb
jl 0x4147ab
cmp byte [ebx + 0x128], 0
jne 0x4147ab
mov byte [ebx + 0x172], 1
mov eax, dword [esi + 0x78]
sub eax, 0xcc
je 0x4147bf
sub eax, 0x64
je 0x4147bf
sub eax, 0x70
jne 0x4147f1
cmp dword [edi + 0x1d0], 0
je 0x4147cf
mov byte [edi + 0x8570], 1
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov byte [esi + 0xae], 1
cmp byte [esi + 0xae], 0
jne 0x41489d
cmp byte [edi + 0x287], 0
jne 0x41489d
push 0xf
push dword [esi + 0x68]
push str.Content_Length:
call fcn.0041d090
add esp, 0xc
test eax, eax
je 0x41489d
mov eax, dword [esi + 0x68]
push 0xa
add eax, 0xf
push 0
push eax
call fcn.00439b87
mov ecx, dword [edi + 0x240]
add esp, 0xc
or ecx, dword [edi + 0x244]
je 0x41485c
cmp edx, dword [edi + 0x244]
jg 0x414fa3
jl 0x41485c
cmp eax, dword [edi + 0x240]
ja 0x414fa3
test edx, edx
jl 0x414881
jg 0x414866
test eax, eax
jb 0x414881
push edx
push eax
push edi
mov dword [esi], eax
mov dword [esi + 4], edx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
call fcn.0041e890
add esp, 0xc
jmp 0x414d74
push edx
push eax
push str.Negative_content_length:__lld__closing_after_transfer_n
push edi
mov byte [ebx + 0x128], 1
call fcn.0041a550
add esp, 0x10
jmp 0x414d74
push 0xd
push dword [esi + 0x68]
push str.Content_Type:
call fcn.0041d090
add esp, 0xc
test eax, eax
je 0x4148f5
push dword [esi + 0x68]
call fcn.00420b50
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4150c6
cmp byte [ebx], 0
jne 0x4148dc
push ebx
call dword [0x49a004]
add esp, 4
jmp 0x414d74
push dword [edi + 0x8588]
call fcn.004165e0
add esp, 4
mov dword [edi + 0x8588], ebx
jmp 0x414d74
cmp dword [ebx + 0xc0], 0xa
jne 0x41493a
cmp byte [ebx + 0x12b], 0
je 0x41493a
push str.keep_alive
push str.Proxy_Connection:
push dword [esi + 0x68]
call fcn.00420a80
add esp, 0xc
test al, al
je 0x41493a
push str.HTTP_1.0_proxy_connection_set_to_keep_alive__n
push edi
mov byte [ebx + 0x128], 0
call fcn.0041a550
add esp, 8
jmp 0x414d74
cmp dword [ebx + 0xc0], 0xb
jne 0x41497f
cmp byte [ebx + 0x12b], 0
je 0x41497f
push str.close
push str.Proxy_Connection:
push dword [esi + 0x68]
call fcn.00420a80
add esp, 0xc
test al, al
je 0x41497f
push str.HTTP_1.1_proxy_connection_set_close__n
push edi
mov byte [ebx + 0x128], 1
call fcn.0041a550
add esp, 8
jmp 0x414d74
cmp dword [ebx + 0xc0], 0xa
jne 0x4149bb
push str.keep_alive
push str.Connection:
push dword [esi + 0x68]
call fcn.00420a80
add esp, 0xc
test al, al
je 0x4149bb
push str.HTTP_1.0_connection_set_to_keep_alive__n
push edi
mov byte [ebx + 0x128], 0
call fcn.0041a550
add esp, 8
jmp 0x414d74
push str.close
push str.Connection:
push dword [esi + 0x68]
call fcn.00420a80
add esp, 0xc
test al, al
je 0x4149e0
mov byte [ebx + 0x128], 1
jmp 0x414d74
push str.chunked
push str.Transfer_Encoding:
push dword [esi + 0x68]
call fcn.00420a80
add esp, 0xc
test al, al
je 0x414a0e
push ebx
mov byte [esi + 0xc0], 1
call fcn.00422290
add esp, 4
jmp 0x414d74
push 8
push dword [esi + 0x68]
push str.Trailer:
call fcn.0041d090
add esp, 0xc
test eax, eax
jne 0x414d6d
push 9
push dword [esi + 0x68]
push str.Trailers:
call fcn.0041d090
add esp, 0xc
test eax, eax
jne 0x414d6d
push 0x11
push dword [esi + 0x68]
push str.Content_Encoding:
call fcn.0041d090
add esp, 0xc
test eax, eax
je 0x414b45
cmp dword [edi + 0x2b8], 0
je 0x414b45
mov ebx, dword [esi + 0x68]
add ebx, 0x11
mov al, byte [ebx]
test al, al
je 0x414a8d
movzx eax, al
push eax
call fcn.004391e2
add esp, 4
test eax, eax
je 0x414a8d
mov al, byte [ebx + 1]
inc ebx
test al, al
jne 0x414a75
push 8
push ebx
push str.identity
call fcn.0041d090
add esp, 0xc
test eax, eax
je 0x414ab0
mov dword [esi + 0x88], 0
jmp 0x414d74
push 7
push ebx
push str.deflate
call fcn.0041d090
add esp, 0xc
test eax, eax
je 0x414ad3
mov dword [esi + 0x88], 1
jmp 0x414d74
push 4
push ebx
push str.gzip
call fcn.0041d090
add esp, 0xc
test eax, eax
jne 0x414b36
push 6
push ebx
push str.x_gzip
call fcn.0041d090
add esp, 0xc
test eax, eax
jne 0x414b36
push 8
push ebx
push str.compress
call fcn.0041d090
add esp, 0xc
test eax, eax
jne 0x414b27
push 0xa
push ebx
push str.x_compress
call fcn.0041d090
add esp, 0xc
test eax, eax
je 0x414d74
mov dword [esi + 0x88], 3
jmp 0x414d74
mov dword [esi + 0x88], 2
jmp 0x414d74
push 0xe
push dword [esi + 0x68]
push str.Content_Range:
call fcn.0041d090
add esp, 0xc
test eax, eax
je 0x414bb6
mov ebx, dword [esi + 0x68]
add ebx, 0xe
mov al, byte [ebx]
test al, al
je 0x414b7f
movzx eax, al
push eax
call fcn.004391b5
add esp, 4
test eax, eax
jne 0x414b7f
mov al, byte [ebx + 1]
inc ebx
test al, al
jne 0x414b67
push 0xa
push 0
push ebx
call fcn.00439b87
mov dword [esi + 0x70], eax
add esp, 0xc
mov dword [esi + 0x74], edx
mov eax, dword [edi + 0x8550]
cmp eax, dword [esi + 0x70]
jne 0x414d74
cmp dword [edi + 0x8554], edx
jne 0x414d74
mov byte [esi + 0x6c], 1
jmp 0x414d74
cmp dword [edi + 0x344], 0
je 0x414c1e
push 0xb
push dword [esi + 0x68]
push str.Set_Cookie:
call fcn.0041d090
add esp, 0xc
test eax, eax
je 0x414c1e
push 2
push 2
push edi
call fcn.0041cfa0
mov eax, dword [ebx + 0x168]
add esp, 0xc
test eax, eax
jne 0x414bf2
mov eax, dword [ebx + 0x8c]
push dword [edi + 0x8544]
push eax
mov eax, dword [esi + 0x68]
add eax, 0xb
push eax
push 1
push dword [edi + 0x344]
push edi
call fcn.00410930
push 2
push edi
call fcn.0041cfe0
add esp, 0x20
jmp 0x414d74
push 0xe
push dword [esi + 0x68]
push str.Last_Modified:
call fcn.0041d090
add esp, 0xc
test eax, eax
je 0x414c8a
cmp dword [edi + 0x1d0], 0
jne 0x414c46
cmp byte [edi + 0x259], 0
je 0x414c8a
push 0
call fcn.0043a77a
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [esi + 0x68]
add eax, 0xe
mov dword [ebp - 0x14], edx
push eax
call fcn.0041b510
add esp, 0xc
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], edx
cmp byte [edi + 0x259], 0
je 0x414d74
mov dword [edi + 0x856c], eax
jmp 0x414d74
push 0x11
push dword [esi + 0x68]
push str.WWW_Authenticate:
call fcn.0041d090
add esp, 0xc
test eax, eax
je 0x414caa
mov eax, dword [esi + 0x78]
cmp eax, 0x191
je 0x414cca
push 0x13
push dword [esi + 0x68]
push str.Proxy_authenticate:
call fcn.0041d090
add esp, 0xc
test eax, eax
je 0x414ce4
mov eax, dword [esi + 0x78]
cmp eax, 0x197
jne 0x414ce4
push dword [esi + 0x68]
push eax
push ebx
call fcn.00420de0
add esp, 0xc
test eax, eax
jne 0x41512d
jmp 0x414d74
mov eax, dword [esi + 0x78]
cmp eax, 0x12c
jl 0x414d74
cmp eax, 0x190
jge 0x414d74
push 9
push dword [esi + 0x68]
push str.Location:
call fcn.0041d090
add esp, 0xc
test eax, eax
je 0x414d74
push dword [esi + 0x68]
call fcn.00420b50
add esp, 4
test eax, eax
je 0x4150c6
cmp byte [eax], 0
jne 0x414d33
push eax
call dword [0x49a004]
add esp, 4
jmp 0x414d74
cmp byte [edi + 0x261], 0
mov dword [edi + 0xc8], eax
je 0x414d74
push eax
call dword [0x49a00c]
add esp, 4
mov dword [edi + 0xcc], eax
test eax, eax
je 0x4150c6
push ebx
call fcn.00420ef0
add esp, 4
test eax, eax
jne 0x41512d
jmp 0x414d74
mov byte [esi + 0xc4], 1
mov ebx, dword [ebp + 0xc]
xor eax, eax
cmp byte [edi + 0x263], al
setne al
add eax, 2
cmp byte [edi + 0x270], 0
mov dword [ebp + 0x10], eax
je 0x414da6
push ebx
push dword [esi + 0x58]
push dword [esi + 0x68]
push 1
push edi
call fcn.0041a3d0
mov eax, dword [ebp + 0x10]
add esp, 0x14
push dword [esi + 0x58]
push dword [esi + 0x68]
push eax
push ebx
call fcn.0041a270
add esp, 0x10
test eax, eax
jne 0x41512d
mov eax, dword [esi + 0x58]
add dword [edi + 0x8574], eax
mov eax, dword [esi + 0x58]
add dword [edi + 0x48], eax
jmp 0x414f41
cmp al, 0xd
jne 0x414ddc
lea eax, [edx + 1]
mov dword [esi + 0x68], eax
mov eax, dword [esi + 0x68]
cmp byte [eax], 0xa
jne 0x414de8
inc eax
mov dword [esi + 0x68], eax
mov eax, dword [esi + 0x78]
cmp eax, 0x64
jl 0x414e1e
cmp eax, 0xc7
jg 0x414e1e
cmp dword [esi + 0x84], 0
mov byte [esi + 0x48], 1
mov dword [esi + 0x50], 0
je 0x414e5c
or dword [esi + 0xa8], 2
mov dword [esi + 0x84], 0
jmp 0x414e5c
mov eax, dword [esi]
and eax, dword [esi + 4]
mov byte [esi + 0x48], 0
cmp eax, 0xffffffff
jne 0x414e5c
cmp byte [esi + 0xc0], 0
jne 0x414e5c
cmp byte [ebx + 0x128], 0
jne 0x414e5c
cmp dword [ebx + 0xc0], 0xb
jl 0x414e5c
push str.no_chunk__no_close__no_size._Assume_close_to_signal_end_n
push edi
call fcn.0041a550
add esp, 8
mov byte [ebx + 0x128], 1
cmp dword [esi + 0x78], 0x1a1
jne 0x414e76
and dword [esi + 0xa8], 0xfffffffd
mov dword [esi + 0x84], 3
push ebx
call fcn.00421080
add esp, 4
test eax, eax
jne 0x415050
mov eax, dword [edi + 0x45c]
mov ecx, dword [esi + 0x68]
sub ecx, eax
push ecx
push eax
xor eax, eax
mov dword [ebp + 0x10], ecx
cmp byte [edi + 0x263], al
setne al
add eax, 2
push eax
push ebx
call fcn.0041a270
add esp, 0x10
test eax, eax
jne 0x41512d
mov eax, dword [ebp + 0x10]
add dword [edi + 0x48], eax
add dword [edi + 0x8574], eax
mov eax, dword [esi + 0x78]
mov ecx, dword [edi + 0x48]
cmp eax, 0x64
jl 0x414ed5
cmp eax, 0xc7
jle 0x414ed7
xor ecx, ecx
mov eax, dword [edi + 0x8550]
or eax, dword [edi + 0x8554]
mov dword [edi + 0x4c], ecx
je 0x414f02
cmp dword [edi + 0x1e0], 1
jne 0x414f02
cmp dword [esi + 0x78], 0x1a0
jne 0x414f02
mov eax, dword [ebp + 0x18]
mov byte [eax], 1
jmp 0x414f3b
mov eax, dword [ebp + 0x18]
cmp byte [eax], 0
jne 0x414f3b
push ebx
call fcn.00420c20
add esp, 4
test eax, eax
jne 0x41512d
cmp byte [ebx + 0x137], al
je 0x414f38
push str.Keep_sending_data_to_get_tossed_away__n
push edi
call fcn.0041a550
add esp, 8
or dword [esi + 0xa8], 2
mov eax, dword [ebp + 0x18]
cmp byte [esi + 0x48], 0
je 0x414fbd
mov eax, dword [edi + 0x45c]
mov dword [esi + 0x54], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x58], 0
cmp byte [eax], 0
jne 0x41512b
mov eax, dword [esi + 0x5c]
cmp byte [eax], 0
jne 0x414562
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov byte [esi + 0x48], 0
cmp dword [ecx], 0
je 0x414f8e
pop edi
mov dword [esi + 0x4c], 1
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
pop edi
mov dword [esi + 0x4c], 2
pop esi
mov dword [ecx], eax
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push str.Maximum_file_size_exceeded
push edi
call fcn.0041a4b0
add esp, 8
mov eax, 0x3f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [edi + 0x266], 0
je 0x414fcb
mov byte [eax], 1
jmp 0x414fe1
cmp byte [esi + 0xc0], 0
je 0x414fe1
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov ecx, dword [esi]
mov eax, dword [esi + 4]
cmp ecx, 0xffffffff
jne 0x414fef
cmp eax, ecx
je 0x415005
push eax
push ecx
push edi
call fcn.0041e890
mov eax, dword [esi]
add esp, 0xc
mov dword [esi + 0x10], eax
mov eax, dword [esi + 4]
mov dword [esi + 0x14], eax
cmp dword [esi + 0x10], 0
jne 0x415019
cmp dword [esi + 0x14], 0
jne 0x415019
mov eax, dword [ebp + 0x18]
mov byte [eax], 1
jmp 0x415021
mov eax, dword [ebp + 0x18]
cmp byte [eax], 0
je 0x415028
and dword [esi + 0xa8], 0xfffffffe
cmp byte [edi + 0x270], 0
je 0x41512b
push ebx
push dword [ebp + 0x10]
push dword [esi + 0x60]
push 1
push edi
call fcn.0041a3d0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0x78]
push str.The_requested_URL_returned_error:__d
push edi
call fcn.0041a4b0
add esp, 0xc
mov eax, 0x16
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov ebx, dword [edi + 0x460]
mov ecx, dword [eax]
mov eax, dword [esi + 0x58]
add eax, ecx
cmp eax, ebx
jb 0x4150e4
mov eax, dword [esi + 0x58]
add ebx, ebx
add eax, ecx
lea eax, [eax + eax*2]
shr eax, 1
cmp eax, ebx
jbe 0x41509b
mov eax, dword [esi + 0x58]
add eax, ecx
lea ebx, [eax + eax*2]
shr ebx, 1
mov eax, dword [edi + 0x45c]
mov ecx, dword [esi + 0x54]
sub ecx, eax
push ebx
push eax
mov dword [ebp + 0x10], ecx
call dword [0x49a008]
add esp, 8
test eax, eax
jne 0x4150d2
push str.Failed_to_alloc_memory_for_big_header_
push edi
call fcn.0041a4b0
add esp, 8
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x45c], eax
add eax, dword [ebp + 0x10]
mov dword [edi + 0x460], ebx
mov dword [esi + 0x54], eax
mov ebx, dword [ebp + 0x14]
push dword [ebx]
push dword [esi + 0x5c]
push dword [esi + 0x54]
call fcn.0042a190
mov eax, dword [ebx]
add esp, 0xc
add dword [esi + 0x54], eax
mov eax, dword [ebx]
add dword [esi + 0x58], eax
cmp dword [esi + 0x50], 0
jne 0x41512b
cmp dword [esi + 0x58], 5
jbe 0x41512b
push dword [edi + 0x45c]
push edi
call fcn.00413d40
add esp, 8
test al, al
jne 0x41512b
mov dword [esi + 0x4c], 2
mov byte [esi + 0x48], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret