Function at 0x47bad0
Capabilities:
Check http status code

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x20]
push ebp
lea esp, [esp]
mov eax, dword [esi + 0x5c]
mov dword [esi + 0x60], eax
mov ecx, dword [ebx]
push ecx
push 0xa
push eax
call fcn.0048d800
add esp, 0xc
test eax, eax
mov dword [esi + 0x64], eax
je 0x47c527
sub eax, dword [esi + 0x5c]
add eax, 1
sub dword [ebx], eax
mov edx, dword [esi + 0x58]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x64]
add eax, 1
mov dword [esi + 0x5c], eax
sub eax, dword [esi + 0x60]
mov ecx, dword [edi + 0x460]
mov ebp, eax
lea eax, [edx + ebp]
cmp eax, ecx
jb 0x47bb77
lea eax, [eax + eax*2]
shr eax, 1
add ecx, ecx
cmp eax, ecx
mov dword [esp + 8], eax
ja 0x47bb3c
mov dword [esp + 8], ecx
mov ecx, dword [esp + 8]
mov eax, dword [edi + 0x45c]
mov ebx, dword [esi + 0x54]
push ecx
push eax
sub ebx, eax
call dword [0x4d9008]
add esp, 8
test eax, eax
je 0x47c569
mov edx, dword [esp + 8]
mov dword [edi + 0x45c], eax
add eax, ebx
mov ebx, dword [esp + 0x24]
mov dword [edi + 0x460], edx
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x54]
push ebp
push eax
push ecx
call fcn.00490060
add dword [esi + 0x54], ebp
mov eax, dword [esi + 0x54]
add dword [esi + 0x58], ebp
mov byte [eax], 0
mov edx, dword [esi + 0x54]
mov dword [esi + 0x64], edx
mov eax, dword [edi + 0x45c]
add esp, 0xc
cmp dword [esi + 0x50], 0
mov dword [esi + 0x68], eax
jne 0x47bbc8
cmp dword [esi + 0x58], 5
jbe 0x47bbc8
mov ecx, dword [edi + 0x45c]
push ecx
mov eax, edi
call fcn.0047b950
add esp, 4
test al, al
je 0x47c5f5
mov eax, dword [esi + 0x68]
mov cl, byte [eax]
cmp cl, 0xa
je 0x47c381
cmp cl, 0xd
je 0x47c386
mov ecx, dword [esi + 0x50]
test ecx, ecx
lea edx, [ecx + 1]
mov dword [esi + 0x50], edx
jne 0x47bd5e
mov ebp, dword [esp + 0x20]
lea ebx, [esi + 0x78]
push ebx
add ebp, 0xc0
push ebp
lea ecx, [esp + 0x14]
push ecx
push str._HTTP__d._d__3d
push eax
call fcn.0048ea17
add esp, 0x14
cmp eax, 3
jne 0x47bc25
mov eax, dword [esp + 0xc]
lea edx, [eax + eax*4]
add edx, edx
add dword [ebp], edx
jmp 0x47bc65
mov eax, dword [esi + 0x68]
push ebx
push str._HTTP__3d
push eax
call fcn.0048ea17
add esp, 0xc
test eax, eax
mov dword [ebp], 0xa
jne 0x47bc65
mov ecx, dword [esi + 0x68]
push ecx
mov eax, edi
call fcn.0047b950
add esp, 4
test al, al
je 0x47c622
mov dword [ebx], 0xc8
mov dword [ebp], 0xa
mov edx, dword [ebx]
mov dword [edi + 0x8560], edx
mov eax, dword [ebp]
mov dword [edi + 0x8568], eax
mov eax, dword [edi + 0x8530]
test eax, eax
je 0x47bc85
cmp eax, dword [ebp]
jle 0x47bc8e
mov ecx, dword [ebp]
mov dword [edi + 0x8530], ecx
cmp byte [edi + 0x260], 0
je 0x47bceb
mov eax, dword [ebx]
cmp eax, 0x190
jl 0x47bceb
cmp eax, 0x191
mov ecx, dword [esp + 0x20]
jne 0x47bcb4
cmp byte [ecx + 0x12c], 0
jne 0x47bcef
cmp eax, 0x197
jne 0x47bcc4
cmp byte [ecx + 0x12d], 0
jne 0x47bcef
mov edx, dword [edi + 0x8550]
or edx, dword [edi + 0x8554]
je 0x47bce2
cmp dword [edi + 0x1e0], 1
jne 0x47bce2
cmp eax, 0x1a0
je 0x47bcef
mov ecx, dword [esi + 0x78]
push ecx
jmp 0x47c64b
mov ecx, dword [esp + 0x20]
mov ebp, dword [ebp]
cmp ebp, 0xa
jne 0x47bd12
push str.HTTP_1.0__assume_close_after_body_n
push edi
call fcn.0047fa70
mov eax, dword [esp + 0x28]
add esp, 8
mov byte [eax + 0x128], 1
jmp 0x47bd27
cmp ebp, 0xb
jl 0x47bd27
cmp byte [ecx + 0x128], 0
jne 0x47bd27
mov byte [ecx + 0x172], 1
mov ebx, dword [ebx]
sub ebx, 0xcc
je 0x47bd3b
sub ebx, 0x64
je 0x47bd3b
sub ebx, 0x70
jne 0x47bd5e
xor eax, eax
cmp dword [edi + 0x1d0], eax
je 0x47bd4c
mov byte [edi + 0x8570], 1
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov byte [esi + 0xae], 1
cmp byte [esi + 0xae], 0
jne 0x47be13
cmp byte [edi + 0x287], 0
jne 0x47be13
mov ecx, dword [esi + 0x68]
push 0xf
push ecx
push str.Content_Length:
call fcn.00487de0
add esp, 0xc
test eax, eax
je 0x47be13
mov edx, dword [esi + 0x68]
push 0xa
add edx, 0xf
push 0
push edx
call fcn.00494cda
mov ebx, dword [edi + 0x240]
mov ecx, dword [edi + 0x244]
mov ebp, ebx
add esp, 0xc
or ebp, ecx
je 0x47bdca
cmp edx, ecx
jg 0x47c62e
jl 0x47bdca
cmp eax, ebx
ja 0x47c62e
test edx, edx
jl 0x47bdf3
jg 0x47bdd4
test eax, eax
jb 0x47bdf3
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.004875b0
mov ebx, dword [esp + 0x2c]
add esp, 0xc
jmp 0x47c323
mov ebx, dword [esp + 0x20]
push edx
push eax
push str.Negative_content_length:__lld__closing_after_transfer_n
push edi
mov byte [ebx + 0x128], 1
call fcn.0047fa70
add esp, 0x10
jmp 0x47c323
mov eax, dword [esi + 0x68]
push 0xd
push eax
push str.Content_Type:
call fcn.00487de0
add esp, 0xc
test eax, eax
je 0x47be76
mov ecx, dword [esi + 0x68]
push ecx
call fcn.004826d0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x47c577
cmp byte [ebx], 0
jne 0x47be58
push ebx
call dword [0x4d9004]
mov ebx, dword [esp + 0x24]
add esp, 4
jmp 0x47c323
mov edx, dword [edi + 0x8588]
push edx
call fcn.00476cc0
mov dword [edi + 0x8588], ebx
mov ebx, dword [esp + 0x24]
add esp, 4
jmp 0x47c323
mov ebx, dword [esp + 0x20]
mov ebp, 0xa
cmp dword [ebx + 0xc0], ebp
jne 0x47bec4
cmp byte [ebx + 0x12b], 0
je 0x47bec4
mov eax, dword [esi + 0x68]
push str.keep_alive
push str.Proxy_Connection:
push eax
call fcn.00483130
add esp, 0xc
test al, al
je 0x47bec4
push str.HTTP_1.0_proxy_connection_set_to_keep_alive__n
push edi
mov byte [ebx + 0x128], 0
call fcn.0047fa70
add esp, 8
jmp 0x47c323
cmp dword [ebx + 0xc0], 0xb
jne 0x47bf0a
cmp byte [ebx + 0x12b], 0
je 0x47bf0a
mov ecx, dword [esi + 0x68]
push str.close
push str.Proxy_Connection:
push ecx
call fcn.00483130
add esp, 0xc
test al, al
je 0x47bf0a
push str.HTTP_1.1_proxy_connection_set_close__n
push edi
mov byte [ebx + 0x128], 1
call fcn.0047fa70
add esp, 8
jmp 0x47c323
cmp dword [ebx + 0xc0], ebp
jne 0x47bf46
mov edx, dword [esi + 0x68]
push str.keep_alive
push str.Connection:
push edx
call fcn.00483130
add esp, 0xc
test al, al
je 0x47bf46
push str.HTTP_1.0_connection_set_to_keep_alive__n
push edi
mov byte [ebx + 0x128], 0
call fcn.0047fa70
add esp, 8
jmp 0x47c323
mov eax, dword [esi + 0x68]
push str.close
push str.Connection:
push eax
call fcn.00483130
add esp, 0xc
test al, al
je 0x47bf6c
mov byte [ebx + 0x128], 1
jmp 0x47c323
mov ecx, dword [esi + 0x68]
push str.chunked
push str.Transfer_Encoding:
push ecx
call fcn.00483130
add esp, 0xc
test al, al
je 0x47bf9b
push ebx
mov byte [esi + 0xc0], 1
call fcn.004894d0
add esp, 4
jmp 0x47c323
mov edx, dword [esi + 0x68]
push 8
push edx
push str.Trailer:
call fcn.00487de0
add esp, 0xc
test eax, eax
jne 0x47c31c
mov eax, dword [esi + 0x68]
push 9
push eax
push str.Trailers:
call fcn.00487de0
add esp, 0xc
test eax, eax
jne 0x47c31c
mov ecx, dword [esi + 0x68]
push 0x11
push ecx
push str.Content_Encoding:
call fcn.00487de0
add esp, 0xc
test eax, eax
je 0x47c0d8
cmp dword [edi + 0x2b8], 0
je 0x47c0d8
mov ebp, dword [esi + 0x68]
mov al, byte [ebp + 0x11]
add ebp, 0x11
test al, al
je 0x47c020
movzx edx, al
push edx
call fcn.0048ec95
add esp, 4
test eax, eax
je 0x47c020
mov al, byte [ebp + 1]
add ebp, 1
test al, al
jne 0x47c006
push 8
push ebp
push str.identity
call fcn.00487de0
add esp, 0xc
test eax, eax
je 0x47c043
mov dword [esi + 0x88], 0
jmp 0x47c323
push 7
push ebp
push str.deflate
call fcn.00487de0
add esp, 0xc
test eax, eax
je 0x47c066
mov dword [esi + 0x88], 1
jmp 0x47c323
push 4
push ebp
push str.gzip
call fcn.00487de0
add esp, 0xc
test eax, eax
jne 0x47c0c9
push 6
push ebp
push str.x_gzip
call fcn.00487de0
add esp, 0xc
test eax, eax
jne 0x47c0c9
push 8
push ebp
push str.compress
call fcn.00487de0
add esp, 0xc
test eax, eax
jne 0x47c0ba
push 0xa
push ebp
push str.x_compress
call fcn.00487de0
add esp, 0xc
test eax, eax
je 0x47c323
mov dword [esi + 0x88], 3
jmp 0x47c323
mov dword [esi + 0x88], 2
jmp 0x47c323
mov eax, dword [esi + 0x68]
push 0xe
push eax
push str.Content_Range:
call fcn.00487de0
add esp, 0xc
test eax, eax
je 0x47c153
mov ebp, dword [esi + 0x68]
mov al, byte [ebp + 0xe]
add ebp, 0xe
test al, al
je 0x47c11a
lea esp, [esp]
movzx ecx, al
push ecx
call fcn.0048eb9e
add esp, 4
test eax, eax
jne 0x47c11a
mov al, byte [ebp + 1]
add ebp, 1
test al, al
jne 0x47c100
push 0xa
push 0
push ebp
call fcn.00494cda
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], edx
mov edx, dword [edi + 0x8550]
add esp, 0xc
cmp edx, eax
jne 0x47c323
mov eax, dword [edi + 0x8554]
cmp eax, dword [esi + 0x74]
jne 0x47c323
mov byte [esi + 0x6c], 1
jmp 0x47c323
cmp dword [edi + 0x344], 0
je 0x47c1be
mov ecx, dword [esi + 0x68]
push 0xb
push ecx
push str.Set_Cookie:
call fcn.00487de0
add esp, 0xc
test eax, eax
je 0x47c1be
push 2
push 2
push edi
call fcn.00481c10
mov eax, dword [ebx + 0x168]
add esp, 0xc
test eax, eax
jne 0x47c190
mov eax, dword [ebx + 0x8c]
mov edx, dword [edi + 0x8544]
mov ecx, dword [edi + 0x344]
push edx
push eax
mov eax, dword [esi + 0x68]
add eax, 0xb
push eax
push 1
push ecx
push edi
call fcn.0047e890
push 2
push edi
call fcn.00481c50
add esp, 0x20
jmp 0x47c323
mov edx, dword [esi + 0x68]
push 0xe
push edx
push str.Last_Modified:
call fcn.00487de0
add esp, 0xc
test eax, eax
je 0x47c230
cmp dword [edi + 0x1d0], 0
jne 0x47c1e7
cmp byte [edi + 0x259], 0
je 0x47c230
push 0
call fcn.0049001a
mov ecx, dword [esi + 0x68]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
add ecx, 0xe
push ecx
mov dword [esp + 0x24], edx
call fcn.004894a0
add esp, 0xc
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], edx
cmp byte [edi + 0x259], 0
je 0x47c323
mov edx, eax
mov dword [edi + 0x856c], edx
jmp 0x47c323
mov eax, dword [esi + 0x68]
push 0x11
push eax
push str.WWW_Authenticate:
call fcn.00487de0
add esp, 0xc
test eax, eax
je 0x47c251
mov eax, dword [esi + 0x78]
cmp eax, 0x191
je 0x47c272
mov ecx, dword [esi + 0x68]
push 0x13
push ecx
push str.Proxy_authenticate:
call fcn.00487de0
add esp, 0xc
test eax, eax
je 0x47c28d
mov eax, dword [esi + 0x78]
cmp eax, 0x197
jne 0x47c28d
mov edx, dword [esi + 0x68]
push edx
push eax
push ebx
call fcn.00482c70
add esp, 0xc
test eax, eax
jne 0x47c6f1
jmp 0x47c323
mov eax, dword [esi + 0x78]
cmp eax, 0x12c
jl 0x47c323
cmp eax, 0x190
jge 0x47c323
mov eax, dword [esi + 0x68]
push 9
push eax
push str.Location:
call fcn.00487de0
add esp, 0xc
test eax, eax
je 0x47c323
mov ecx, dword [esi + 0x68]
push ecx
call fcn.004826d0
add esp, 4
test eax, eax
je 0x47c577
cmp byte [eax], 0
jne 0x47c2e2
push eax
call dword [0x4d9004]
add esp, 4
jmp 0x47c323
cmp byte [edi + 0x261], 0
mov dword [edi + 0xc8], eax
je 0x47c323
push eax
call dword [0x4d900c]
add esp, 4
test eax, eax
mov dword [edi + 0xcc], eax
je 0x47c577
push ebx
call fcn.004828e0
add esp, 4
test eax, eax
jne 0x47c6f1
jmp 0x47c323
mov byte [esi + 0xc4], 1
cmp byte [edi + 0x263], 0
mov ebp, 2
je 0x47c336
mov ebp, 3
cmp byte [edi + 0x270], 0
je 0x47c353
mov edx, dword [esi + 0x58]
mov eax, dword [esi + 0x68]
push ebx
push edx
push eax
push 1
push edi
call fcn.0047f980
add esp, 0x14
mov ecx, dword [esi + 0x58]
mov edx, dword [esi + 0x68]
push ecx
push edx
push ebp
push ebx
call fcn.0047fc90
add esp, 0x10
test eax, eax
jne 0x47c6f1
mov eax, dword [esi + 0x58]
add dword [edi + 0x8574], eax
mov ecx, dword [esi + 0x58]
add dword [edi + 0x48], ecx
jmp 0x47c4f5
cmp cl, 0xd
jne 0x47c38c
add eax, 1
mov dword [esi + 0x68], eax
mov eax, dword [esi + 0x68]
cmp byte [eax], 0xa
jne 0x47c39a
add eax, 1
mov dword [esi + 0x68], eax
mov eax, dword [esi + 0x78]
cmp eax, 0x64
jl 0x47c3c9
cmp eax, 0xc7
jg 0x47c3c9
xor eax, eax
cmp dword [esi + 0x84], eax
mov byte [esi + 0x48], 1
mov dword [esi + 0x50], eax
je 0x47c40b
or dword [esi + 0xa8], 2
mov dword [esi + 0x84], eax
jmp 0x47c40b
mov eax, dword [esi]
and eax, dword [esi + 4]
mov byte [esi + 0x48], 0
cmp eax, 0xffffffff
jne 0x47c40b
cmp byte [esi + 0xc0], 0
jne 0x47c40b
mov ebx, dword [esp + 0x20]
cmp byte [ebx + 0x128], 0
jne 0x47c40b
cmp dword [ebx + 0xc0], 0xb
jl 0x47c40b
push str.no_chunk__no_close__no_size._Assume_close_to_signal_end_n
push edi
call fcn.0047fa70
add esp, 8
mov byte [ebx + 0x128], 1
cmp dword [esi + 0x78], 0x1a1
jne 0x47c425
and dword [esi + 0xa8], 0xfffffffd
mov dword [esi + 0x84], 3
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00482d70
add esp, 4
test eax, eax
jne 0x47c647
cmp byte [edi + 0x263], al
lea ecx, [eax + 2]
je 0x47c448
lea ecx, [eax + 3]
mov eax, dword [edi + 0x45c]
mov ebp, dword [esi + 0x68]
mov ebx, dword [esp + 0x20]
sub ebp, eax
push ebp
push eax
push ecx
push ebx
call fcn.0047fc90
add esp, 0x10
test eax, eax
jne 0x47c6f1
add dword [edi + 0x48], ebp
add dword [edi + 0x8574], ebp
mov eax, dword [esi + 0x78]
cmp eax, 0x64
mov ecx, dword [edi + 0x48]
jl 0x47c486
cmp eax, 0xc7
jle 0x47c488
xor ecx, ecx
mov edx, dword [edi + 0x8550]
or edx, dword [edi + 0x8554]
mov dword [edi + 0x4c], ecx
je 0x47c4b4
cmp dword [edi + 0x1e0], 1
jne 0x47c4b4
cmp dword [esi + 0x78], 0x1a0
jne 0x47c4b4
mov eax, dword [esp + 0x28]
mov byte [eax], 1
jmp 0x47c4eb
mov ecx, dword [esp + 0x28]
cmp byte [ecx], 0
jne 0x47c4eb
push ebx
call fcn.00483380
add esp, 4
test eax, eax
jne 0x47c6f1
cmp byte [ebx + 0x137], al
je 0x47c4eb
push str.Keep_sending_data_to_get_tossed_away__n
push edi
call fcn.0047fa70
add esp, 8
or dword [esi + 0xa8], 2
cmp byte [esi + 0x48], 0
je 0x47c664
mov edx, dword [edi + 0x45c]
mov eax, dword [esp + 0x28]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], edx
cmp byte [eax], 0
jne 0x47c6ef
mov ecx, dword [esi + 0x5c]
cmp byte [ecx], 0
je 0x47c6ef
mov ebx, dword [esp + 0x24]
jmp 0x47bae0
mov edx, dword [esi + 0x58]
mov eax, dword [ebx]
mov ecx, dword [edi + 0x460]
add eax, edx
cmp eax, ecx
jb 0x47c597
lea eax, [eax + eax*2]
shr eax, 1
add ecx, ecx
cmp eax, ecx
mov dword [esp + 8], eax
ja 0x47c54b
mov dword [esp + 8], ecx
mov ecx, dword [esp + 8]
mov eax, dword [edi + 0x45c]
mov ebp, dword [esi + 0x54]
push ecx
push eax
sub ebp, eax
call dword [0x4d9008]
add esp, 8
test eax, eax
jne 0x47c582
push str.Failed_to_alloc_memory_for_big_header_
push edi
call fcn.0047fb00
add esp, 8
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x14
ret
mov edx, dword [esp + 8]
mov dword [edi + 0x45c], eax
add eax, ebp
mov dword [edi + 0x460], edx
mov dword [esi + 0x54], eax
mov eax, dword [ebx]
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x54]
push eax
push ecx
push edx
call fcn.00490060
mov eax, dword [ebx]
add dword [esi + 0x54], eax
mov ecx, dword [ebx]
add dword [esi + 0x58], ecx
mov eax, dword [esi + 0x58]
add esp, 0xc
cmp dword [esi + 0x50], 0
jne 0x47c6ef
cmp eax, 5
jbe 0x47c6ef
mov edx, dword [edi + 0x45c]
push edx
mov eax, edi
call fcn.0047b950
add esp, 4
test al, al
jne 0x47c6ef
pop ebp
mov byte [esi + 0x48], al
mov dword [esi + 0x4c], 2
xor eax, eax
pop ebx
add esp, 0x14
ret
mov byte [esi + 0x48], 0
cmp dword [ebx], 0
je 0x47c60d
pop ebp
mov dword [esi + 0x4c], 1
xor eax, eax
pop ebx
add esp, 0x14
ret
mov eax, dword [esp + 0x10]
mov dword [esi + 0x4c], 2
mov dword [ebx], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
pop ebp
mov byte [esi + 0x48], 0
xor eax, eax
pop ebx
add esp, 0x14
ret
push str.Maximum_file_size_exceeded
push edi
call fcn.0047fb00
add esp, 8
pop ebp
mov eax, 0x3f
pop ebx
add esp, 0x14
ret
mov edx, dword [esi + 0x78]
push edx
push str.The_requested_URL_returned_error:__d
push edi
call fcn.0047fb00
add esp, 0xc
pop ebp
mov eax, 0x16
pop ebx
add esp, 0x14
ret
cmp byte [edi + 0x266], 0
je 0x47c676
mov eax, dword [esp + 0x28]
mov byte [eax], 1
jmp 0x47c68c
cmp byte [esi + 0xc0], 0
je 0x47c68c
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi]
cmp eax, 0xffffffff
mov ecx, dword [esi + 4]
jne 0x47c69a
cmp ecx, eax
je 0x47c6b0
push ecx
push eax
push edi
call fcn.004875b0
mov ecx, dword [esi]
mov edx, dword [esi + 4]
add esp, 0xc
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
cmp dword [esi + 0x10], 0
jne 0x47c6c5
cmp dword [esi + 0x14], 0
jne 0x47c6c5
mov eax, dword [esp + 0x28]
mov byte [eax], 1
jmp 0x47c6ce
mov ecx, dword [esp + 0x28]
cmp byte [ecx], 0
je 0x47c6d5
and dword [esi + 0xa8], 0xfffffffe
cmp byte [edi + 0x270], 0
je 0x47c6ef
mov edx, dword [esi + 0x60]
push ebx
push ebp
push edx
push 1
push edi
call fcn.0047f980
add esp, 0x14
xor eax, eax
pop ebp
pop ebx
add esp, 0x14
ret