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

Disassembly:
sub esp, 0x30
mov eax, dword [0x1008600c]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x34]
push ebx
push ebp
push esi
mov ebp, edx
mov dword [esp + 0x10], eax
push edi
mov dword [esp + 0x10], ebp
mov edi, ecx
xor ebx, ebx
call fcn.10040350
cmp dword [0x10089368], ebx
je 0x1004062e
mov esi, dword [sym.imp.KERNEL32.dll_VirtualQuery]
lea eax, [esp + 0x18]
push 0x1c
push eax
push edi
call esi
cmp dword [esp + 0x28], 0x1000
jne 0x10040627
test byte [esp + 0x2c], 0xf0
je 0x10040627
push 0x1c
lea eax, [esp + 0x1c]
push eax
push ebp
call esi
cmp dword [esp + 0x28], 0x1000
jne 0x10040627
test byte [esp + 0x2c], 0xf0
je 0x10040627
mov edx, dword [0x10089828]
xor eax, eax
test edx, edx
je 0x10040443
mov ecx, dword [0x10089820]
cmp edi, dword [ecx]
je 0x10040523
inc eax
add ecx, 0x2c
cmp eax, edx
jb 0x10040433
mov eax, dword [0x10089810]
test eax, eax
je 0x1004045f
nop dword [eax]
cmp dword [eax + 4], ebx
jne 0x10040536
mov eax, dword [eax]
test eax, eax
jne 0x10040450
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x1004053e
lea edx, [eax + 0x20]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov esi, 0x20
nop dword [eax]
mov ecx, dword [eax + 4]
add esi, 0x20
mov dword [edx], ecx
mov dword [eax + 4], edx
add edx, 0x20
cmp esi, 0xfe0
jbe 0x10040490
mov ecx, dword [0x10089810]
mov dword [eax], ecx
mov dword [0x10089810], eax
mov ebp, dword [eax + 4]
mov ecx, dword [ebp]
inc dword [eax + 8]
mov dword [eax + 4], ecx
lea ecx, [esp + 0x18]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebp
call fcn.100408b0
test eax, eax
je 0x10040619
mov ecx, dword [0x10089820]
test ecx, ecx
jne 0x10040548
push 0x580
push ecx
push dword [0x10089368]
mov dword [0x10089824], 0x20
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov dword [0x10089820], ecx
test ecx, ecx
jne 0x10040582
mov ecx, ebp
mov ebx, 9
call fcn.10040c40
jmp 0x10040633
cmp eax, 0xffffffff
je 0x10040443
mov ebx, 3
jmp 0x10040633
test eax, eax
jne 0x100404b3
mov ebx, 9
jmp 0x10040633
mov eax, dword [0x10089828]
mov edx, dword [0x10089824]
cmp eax, edx
jb 0x10040587
imul eax, edx, 0x58
push eax
push ecx
push 0
push dword [0x10089368]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, eax
test ecx, ecx
je 0x10040512
mov eax, dword [0x10089824]
add eax, eax
mov dword [0x10089820], ecx
mov dword [0x10089824], eax
mov eax, dword [0x10089828]
imul esi, eax, 0x2c
inc eax
mov dword [0x10089828], eax
add esi, ecx
je 0x10040512
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov cl, dl
mov ebp, dword [esp + 0x20]
and cl, 1
mov dword [esi], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 4], eax
mov al, byte [esi + 0x14]
and al, 0xf8
mov dword [esi + 8], ebp
or cl, al
mov eax, dword [esi + 0x18]
xor eax, dword [esp + 0x28]
and eax, 0xf
mov byte [esi + 0x14], cl
xor dword [esi + 0x18], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 0x20], ecx
mov ecx, dword [esp + 0x38]
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ecx
test edx, edx
je 0x10040602
mov eax, dword [edi - 5]
mov dword [esi + 0xc], eax
mov ax, word [edi - 1]
mov word [esi + 0x10], ax
mov al, byte [edi + 1]
mov byte [esi + 0x12], al
jmp 0x1004060d
mov eax, dword [edi]
mov dword [esi + 0xc], eax
mov al, byte [edi + 4]
mov byte [esi + 0x10], al
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10040633
mov dword [eax], ebp
jmp 0x10040633
mov ecx, ebp
mov ebx, 8
call fcn.10040c40
jmp 0x10040633
mov ebx, 7
jmp 0x10040633
mov ebx, 2
xor ecx, ecx
mov eax, 0x10089364
xchg dword [eax], ecx
mov ecx, dword [esp + 0x3c]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1004144e
add esp, 0x30
ret 4