Function at 0x10081fb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x44
mov eax, dword [edi + 0x9c4]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
push ebx
xor ebx, ebx
mov dword [ecx], ebx
push ebp
mov dword [esp + 0xc], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], 0x64
mov dword [esp + 0x18], eax
mov dword [edx], ebx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov ebp, dword [edi + 0x518]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
je 0x10082012
cmp dword [esi + 0xc4], 0
jne 0x10082012
sub eax, dword [esi + 0x10]
sbb ecx, dword [esi + 0x14]
xor edx, edx
cmp ecx, edx
jg 0x10082012
jl 0x10082010
cmp eax, ebp
jae 0x10082012
mov ebp, eax
test ebp, ebp
je 0x1008204e
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x50]
lea eax, [esp + 8]
push eax
mov eax, dword [edx + 0x270]
push ebp
push ecx
push eax
push edi
call fcn.1005f460
mov ebx, eax
add esp, 0x14
cmp ebx, 0x51
mov dword [esp + 0xc], ebx
je 0x10082565
test ebx, ebx
jg 0x10082678
jmp 0x10082056
mov dword [esp + 8], 0
mov ecx, dword [esi + 0x10]
or ecx, dword [esi + 0x14]
jne 0x10082098
push 7
lea edx, [esp + 0x30]
push edi
push edx
call fcn.10080b30
add esp, 0xc
cmp dword [esi + 0x78], 0
jle 0x10082098
lea eax, [esp + 0x3c]
push eax
call fcn.10061710
mov ecx, dword [eax]
mov dword [esi + 0x68], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x6c], edx
mov ecx, dword [eax + 8]
mov dword [esi + 0x70], ecx
mov edx, dword [eax + 0xc]
add esp, 4
mov dword [esi + 0x74], edx
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 8]
or dword [eax], 1
test ecx, ecx
jne 0x100820b9
cmp dword [esi + 0x90], ecx
jne 0x100820b9
mov dword [esp + 0x14], 1
jmp 0x100820c9
test ecx, ecx
mov dword [esp + 0x14], 0
jle 0x1008256c
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x50]
mov byte [ecx + eax], 0
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x254]
mov eax, dword [eax + 0x34]
test eax, eax
je 0x1008210e
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0xc]
push edx
push ebp
push edi
call eax
mov ebx, eax
add esp, 0x10
test ebx, ebx
mov dword [esp + 0xc], ebx
jne 0x10082678
cmp dword [esp + 0x10], eax
jne 0x1008262f
cmp dword [esi + 0xc4], 0
je 0x100821bd
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0xc]
push ecx
push ebp
push edi
mov dword [esp + 0x34], 0
call fcn.100793e0
mov ebx, eax
add esp, 0x10
test ebx, ebx
mov dword [esp + 0xc], ebx
jne 0x10082678
mov edx, dword [ebp + 0x254]
mov eax, dword [edx + 0x34]
test eax, eax
je 0x1008218f
cmp dword [esi + 0xc], ebx
jg 0x1008218f
jl 0x1008215e
cmp dword [esi + 8], ebx
ja 0x1008218f
mov ecx, dword [esp + 8]
test ecx, ecx
jle 0x10082193
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0xc]
push edx
push ebp
push edi
call eax
mov ebx, eax
add esp, 0x10
test ebx, ebx
mov dword [esp + 0xc], eax
jne 0x10082678
cmp dword [esp + 0x10], eax
jne 0x1008262f
mov ecx, dword [esp + 8]
cmp dword [esp + 0x24], 0
je 0x100821c1
test ecx, ecx
jle 0x1008262f
mov edx, dword [edi + 0xddc]
push edx
push ecx
push str.Excess_found:_excess___zd_url___s__zero_length_body_
push edi
call fcn.1005abd0
add esp, 0x10
jmp 0x1008262f
mov ecx, dword [esp + 8]
cmp dword [esi + 0xc4], 0
jne 0x100824e6
test ecx, ecx
jg 0x100821dd
cmp dword [esp + 0x14], 0
je 0x100824e6
cmp dword [edi + 0x16c], 0
jne 0x10082575
cmp dword [esi + 0x90], 0
jne 0x10082237
cmp dword [esp + 0x14], 0
jne 0x10082237
mov eax, dword [esp + 0x50]
mov edx, dword [eax + 0x254]
test dword [edx + 0x44], 0x40003
je 0x10082237
mov ebp, dword [esp + 0x58]
push ebp
push eax
push edi
call fcn.10077ef0
mov ebx, eax
add esp, 0xc
test ebx, ebx
mov dword [esp + 0xc], ebx
jne 0x10082678
cmp dword [ebp], eax
jne 0x10082678
mov ecx, dword [esp + 8]
add dword [esi + 0x90], 1
cmp dword [edi + 0x790], 0
je 0x10082297
cmp dword [esi + 0x48], 0
je 0x10082283
lea ebp, [edi + 0x9b4]
push ebp
call fcn.100d4520
add esp, 4
push eax
push ebp
call fcn.100d3700
add esp, 4
push eax
push 3
push edi
call fcn.1005a9f0
add esp, 0x10
cmp dword [esi + 0x48], 1
jne 0x10082293
mov eax, dword [esp + 8]
mov ecx, dword [esi + 0x50]
push eax
push ecx
jmp 0x10082288
mov edx, dword [esi + 0x50]
push ecx
push edx
push 3
push edi
call fcn.1005a9f0
add esp, 0x10
mov ecx, dword [esp + 8]
cmp dword [esi + 0xd8], 0
je 0x100822ed
lea eax, [esp + 0x28]
push eax
mov eax, dword [esi + 0x50]
lea edx, [esp + 0xc]
push edx
push ecx
push eax
push edi
call fcn.1008ac30
add esp, 0x14
test eax, eax
jg 0x1008259b
cmp eax, 0xffffffff
jne 0x100822e9
and dword [esi + 0x64], 0xfffffffe
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
mov edx, eax
or edx, ecx
je 0x100822e9
push ecx
push eax
push str.Leftovers_after_chunking:___I64du_bytes
push edi
call fcn.1005abd0
add esp, 0x10
mov ecx, dword [esp + 8]
cmp dword [esi + 0x48], 1
jne 0x10082316
cmp dword [esi + 0xd0], 0
jne 0x10082316
lea eax, [edi + 0x9b4]
push eax
call fcn.100d4520
mov ecx, dword [esp + 0xc]
add esp, 4
add dword [esi + 0x10], eax
adc dword [esi + 0x14], 0
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
mov edx, dword [esi + 0xc]
jne 0x10082325
cmp edx, eax
je 0x1008239d
mov ebp, dword [esi + 0x10]
mov ebx, dword [esi + 0x14]
mov eax, ecx
cdq
add eax, ebp
adc edx, ebx
mov ebx, dword [esi + 0xc]
cmp edx, ebx
jl 0x10082399
jg 0x10082340
cmp eax, dword [esi + 8]
jb 0x10082399
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 8]
add eax, ecx
mov dword [esp + 0x1c], eax
je 0x10082383
cmp dword [esi + 0xd0], 0
jne 0x10082383
mov ecx, dword [esi + 0x14]
mov edx, dword [esi]
push ecx
mov ecx, dword [esi + 8]
push ebp
push ebx
push ecx
mov ecx, dword [esi + 4]
push ecx
push edx
push eax
push str.Excess_found_in_a_read:_excess___zu__size___I64d__maxdownload___I64d__bytecount___I64d
push edi
call fcn.1005abd0
mov eax, dword [esp + 0x74]
push 1
push eax
call fcn.10060420
add esp, 0x2c
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0x10]
mov dword [esp + 8], ecx
jns 0x10082395
xor ecx, ecx
mov dword [esp + 8], ecx
and dword [esi + 0x64], 0xfffffffe
mov ebx, dword [esp + 0xc]
mov eax, ecx
cdq
add dword [esi + 0x10], eax
adc dword [esi + 0x14], edx
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
push ecx
push edx
push edi
call fcn.10080c90
mov ecx, dword [esp + 0x14]
add esp, 0xc
cmp dword [esi + 0xd8], 0
jne 0x100824e6
test ecx, ecx
jne 0x100823db
cmp dword [esi + 0x48], ecx
jne 0x100823e1
cmp dword [esp + 0x14], ecx
je 0x100824e6
cmp dword [esi + 0x48], 0
je 0x1008245a
cmp dword [esi + 0xd0], 0
jne 0x1008245a
lea ebp, [edi + 0x9b4]
push ebp
call fcn.100d4520
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov ebx, edx
and ebx, ecx
add esp, 4
cmp ebx, 0xffffffff
je 0x10082432
xor ebx, ebx
cmp ebx, ecx
jl 0x10082432
jg 0x10082414
cmp eax, edx
jbe 0x10082432
mov eax, dword [esi + 8]
push eax
push ebp
call fcn.100d3700
add esp, 4
push eax
push 1
push edi
call fcn.1005f440
mov ebx, eax
mov dword [esp + 0x1c], ebx
jmp 0x1008244b
push eax
push ebp
call fcn.100d3700
add esp, 4
push eax
push 1
push edi
call fcn.1005f440
mov ebx, eax
mov dword [esp + 0x1c], eax
add esp, 0x10
test ebx, ebx
jne 0x10082678
mov ecx, dword [esp + 8]
cmp dword [esi + 0x48], 2
jge 0x100824d7
cmp dword [edi + 0x7b0], 0
jne 0x1008248e
mov eax, dword [esi + 0x80]
test eax, eax
je 0x1008248e
cmp dword [esi + 0xd0], 0
jne 0x100824d7
test ecx, ecx
je 0x100824d7
push ecx
mov ecx, dword [esi + 0x50]
push ecx
push eax
push edi
call fcn.10059170
jmp 0x100824ca
cmp dword [esi + 0xd0], 0
jne 0x100824d7
test ecx, ecx
je 0x100824d7
mov edx, dword [esp + 0x50]
mov eax, dword [edx + 0x254]
test dword [eax + 0x44], 0xc000
push ecx
je 0x100824be
mov ecx, dword [esi + 0x50]
push ecx
push edi
call fcn.10067c80
add esp, 0xc
jmp 0x100824cd
mov edx, dword [esi + 0x50]
push edx
push 1
push edi
call fcn.1005f440
add esp, 0x10
mov ecx, dword [esp + 8]
mov ebx, eax
mov dword [esp + 0xc], ebx
test ebx, ebx
mov dword [esi + 0x48], 0
jne 0x10082678
mov eax, dword [esp + 0x50]
mov edx, dword [eax + 0x254]
cmp dword [edx + 0x34], 0
je 0x10082502
mov edx, dword [esp + 0x1c]
test edx, edx
jne 0x100825dc
cmp dword [esp + 0x14], 0
je 0x1008250d
and dword [esi + 0x64], 0xfffffffe
mov eax, dword [esi + 0x64]
test al, 0x10
jne 0x1008262f
test al, 1
je 0x1008262f
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 0x254]
mov eax, dword [eax + 0x44]
test al, 0xc
je 0x10082534
push 1
jmp 0x1008253a
test al, 0x30
jne 0x1008254b
push 0
push edi
call fcn.1005fa10
add esp, 8
test eax, eax
je 0x1008262f
mov eax, dword [esp + 0x20]
mov ecx, eax
sub eax, 1
test ecx, ecx
mov dword [esp + 0x20], eax
jne 0x10081fe1
jmp 0x1008262f
xor ebx, ebx
jmp 0x1008262f
and dword [esi + 0x64], 0xfffffffe
jmp 0x1008262f
mov eax, dword [esp + 0x50]
push 2
push eax
call fcn.10060420
mov ecx, dword [esp + 0x60]
add esp, 8
mov ebx, 8
pop ebp
mov eax, ebx
mov dword [ecx], 1
pop ebx
add esp, 0x44
ret
cmp eax, 6
jne 0x100825ba
push str.Failed_reading_the_chunked_encoded_stream
push edi
call fcn.1005aa90
mov ebx, dword [esp + 0x30]
add esp, 8
pop ebp
mov eax, ebx
pop ebx
add esp, 0x44
ret
push eax
call fcn.1008b000
push eax
push str._s_in_chunked_encoding
push edi
call fcn.1005aa90
add esp, 0x10
mov ebx, 0x38
pop ebp
mov eax, ebx
pop ebx
add esp, 0x44
ret
add dword [esi + 0x50], ecx
mov ecx, dword [esi + 0x50]
mov eax, dword [edi + 0x518]
mov ebp, dword [esp + 0x18]
lea ebx, [ecx + edx]
add ebp, eax
cmp ebx, ebp
jbe 0x100825fd
sub eax, ecx
add eax, dword [esp + 0x18]
mov edx, eax
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], edx
mov edx, dword [eax + 0x254]
mov edx, dword [edx + 0x34]
push eax
push edi
call edx
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x10082678
cmp dword [esp + 0x10], eax
je 0x1008262f
or dword [esi + 0x64], 1
cmp dword [esp + 0x20], 0
jg 0x1008264e
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x5c]
mov dword [eax + 0x3a0], 1
mov dword [ecx], 1
mov edx, dword [esi + 0x64]
and dl, 3
cmp dl, 2
jne 0x10082678
mov eax, dword [esp + 0x50]
cmp dword [eax + 0x1f0], 0
je 0x10082678
push str.we_are_done_reading_and_this_is_set_to_close__stop_send
push edi
call fcn.1005abd0
add esp, 8
and dword [esi + 0x64], 0xfffffffd
pop ebp
mov eax, ebx
pop ebx
add esp, 0x44
ret