Function at 0x500720
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x600418
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], 0
mov eax, dword [ebp + 0xbc]
lea edi, [ebp + 0xbc]
lea ebx, [ebp + 0xc0]
lea esi, [esp + 0x24]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], eax
call fcn.00501fe0
xor esi, esi
cmp eax, esi
je 0x500963
mov eax, dword [ebx]
push 5
push str.HTTP_
push eax
call fcn.005d58dc
add esp, 0xc
test eax, eax
jne 0x500963
mov ecx, dword [edi]
push ecx
call fcn.00403a00
mov ebx, dword [ebx]
add ebx, 9
push ebx
mov dword [ebp + 0xe0], esi
mov dword [ebp + 0xe4], esi
call fcn.005d41c5
add esp, 8
lea ebx, [esp + 0x18]
lea esi, [esp + 0x24]
mov dword [ebp + 0xf0], eax
call fcn.00501fe0
test eax, eax
je 0x5008c2
mov esi, dword [esp + 0x18]
cmp dword [esi - 0xc], 0
jle 0x5008ad
push 0x3a
push esi
call fcn.005d66ac
add esp, 8
test eax, eax
je 0x5008ad
sub eax, esi
mov edi, eax
cmp edi, 0xffffffff
je 0x5008ad
lea ecx, [edi + 1]
lea esi, [esp + 0x20]
lea edx, [esp + 0x18]
call fcn.004ce0f0
mov esi, eax
mov eax, edi
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x18]
mov byte [esp + 0x38], 1
call fcn.004ce110
mov ebx, eax
mov edi, esi
mov byte [esp + 0x38], 2
call fcn.004ce050
mov ebx, dword [ebx]
mov eax, dword [eax]
push ebx
lea ecx, [ebp + 0xc4]
call fcn.004ce330
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x500888
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5008ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ebx, [esp + 0x18]
lea esi, [esp + 0x24]
call fcn.00501fe0
test eax, eax
jne 0x5007f1
lea ebx, [ebp + 0xc4]
push str.Content_Length
call fcn.00478c60
test eax, eax
je 0x5008f5
mov eax, dword [eax + 4]
push 0xa
lea ecx, [esp + 0x24]
push ecx
push eax
call fcn.005d5236
add esp, 0xc
mov dword [ebp + 0xe0], eax
mov dword [ebp + 0xe4], edx
push str.Transfer_Encoding
call fcn.00478c60
test eax, eax
je 0x500922
mov eax, dword [eax + 4]
push str.chunked
push eax
call fcn.005d7af6
add esp, 8
test eax, eax
jne 0x500922
mov dword [ebp + 0xf4], 1
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x50094a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp]
mov eax, dword [edx + 0x14]
push 0x2efb
mov ecx, ebp
call eax
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x50099a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret