Function at 0x40f480
Capabilities:
Extract http body

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4494e8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x45e700]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x40], ecx
xor esi, esi
mov dword [ebp - 4], esi
cmp byte [ecx + 0xfc], 0
jne 0x40f740
push ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
call fcn.0040f9c0
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push 0x4503a4
mov dword [ebp - 0x3c], eax
push eax
mov eax, dword [ecx]
call eax
mov eax, dword [ebp - 0x1c]
cmp eax, esi
je 0x40f740
mov ecx, dword [eax]
lea edx, [ebp - 0x24]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x18]
push eax
mov ecx, 8
mov word [ebp - 0x50], cx
mov ebx, dword [ebp - 0x50]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [ebp - 0x4c]
mov ecx, str.span
mov dword [eax + 4], ebx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], esi
mov edi, dword [edx]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x44]
push edx
mov edx, dword [edi + 0x30]
mov dword [eax + 0xc], ecx
call edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push 0x450394
push eax
mov eax, dword [ecx]
call eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
lea edx, [ebp - 0x28]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
xor eax, eax
cmp eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
jge 0x40f703
mov esi, dword [ebp - 0x20]
mov edi, dword [esi]
mov ecx, 3
mov word [ebp - 0x50], cx
mov ebx, dword [ebp - 0x50]
lea ecx, [ebp - 0x18]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], ebx
mov ebx, dword [ebp - 0x4c]
mov dword [ecx + 4], ebx
mov ebx, dword [ebp - 0x50]
cdq
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], ebx
mov ebx, dword [ebp - 0x4c]
mov dword [ecx + 4], ebx
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
mov edx, dword [edi + 0x2c]
push esi
call edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push 0x450384
push eax
mov eax, dword [ecx]
call eax
mov ecx, dword [ebp - 0x14]
mov esi, dword [ecx]
lea edx, [ebp - 0x60]
push edx
push 0
push 0x452478
add esi, 0x20
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [esi]
push eax
mov eax, dword [ebp - 0x14]
push eax
call ecx
cmp word [ebp - 0x60], 1
je 0x40f774
mov edx, dword [ebp - 0x58]
push edx
lea ecx, [ebp - 0x30]
call fcn.00401990
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x30]
mov ecx, 0x452480
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40f62d
test dx, dx
je 0x40f629
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40f62d
add eax, 4
add ecx, 4
test dx, dx
jne 0x40f607
xor eax, eax
jmp 0x40f632
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x40f754
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [ebp - 0x34]
push edx
push eax
mov eax, dword [ecx + 0xf0]
call eax
mov ecx, dword [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00401990
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x38]
push 0x452488
mov ebx, 2
push eax
mov byte [ebp - 4], bl
call fcn.0040e810
add esp, 0xc
push eax
mov ecx, 0x462ef4
mov byte [ebp - 4], 3
call fcn.00401ce0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f6ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
push 0x452490
mov ecx, 0x462ef4
call fcn.004028f0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f6de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f701
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor esi, esi
mov eax, dword [ebp - 0x1c]
cmp eax, esi
je 0x40f715
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x14]
cmp eax, esi
je 0x40f727
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x3c]
cmp eax, esi
je 0x40f736
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [ebp - 0x40]
push 5
call fcn.00419ba0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f774
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x2c]
inc eax
xor esi, esi
jmp 0x40f55c