Function at 0x10015020
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1002214e
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x1002e018]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
mov eax, dword [0x1002e018]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
xor ebx, ebx
mov ecx, 0x1f
xor eax, eax
lea esp, [esp]
mov dl, byte [eax + str.Vfira_nuINF_OY]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [esp + eax + 0x34], dl
jns 0x1001508d
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0x17
jl 0x10015070
mov byte [esp + 0x4b], bl
mov dword [esp + 0xb0], ebx
mov ecx, dword [0x10161524]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
lea edx, [esp + 0x34]
push edx
call eax
mov esi, eax
call fcn.1000a4a0
mov eax, dword [esi + eax]
mov dword [0x10160f84], eax
mov dword [esp + 0xb0], 0xffffffff
cmp eax, ebx
je 0x1001558a
call fcn.1000a4a0
push eax
call fcn.1000a380
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp dword [0x101610b4]
call fcn.1000a4a0
push eax
call fcn.1000a410
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp dword [0x1015e998]
call fcn.1000a4a0
push eax
call fcn.1000a380
cdq
sub eax, edx
sar eax, 1
mov dword [0x10160e74], eax
call fcn.1000a4a0
push eax
call fcn.1000a410
cdq
sub eax, edx
sar eax, 1
mov dword [0x10160e78], eax
call fcn.1000fbc0
cmp dword [0x1015fc10], ebx
jne 0x10015165
push ebx
push 0x1015fc10
push 0x10025a9c
push 0x800
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.DINPUT8.dll_DirectInput8Create]
jmp 0x1001516a
call fcn.10003200
mov esi, dword [0x10160f84]
cmp dword [0x10161a20], ebx
jne 0x100151b3
cmp dword [0x10161a28], ebx
jne 0x1001518e
cmp byte [0x1016162b], 1
jne 0x1001518e
call fcn.1000f920
fild dword [0x1002f458]
sub esp, 8
mov ecx, esi
fstp dword [esp + 4]
fild dword [0x1002f45c]
fstp dword [esp]
call fcn.1000ccf0
add esp, 8
call fcn.1000d410
call fcn.1000d730
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.MSVCR100.dll__time64]
lea edx, [esp + 0x18]
add esp, 4
push edx
call dword [sym.imp.MSVCR100.dll__localtime64]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
add esp, 4
push ecx
push edx
push eax
push str._02i:_02i:_02i
push 0x101610d0
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x14
cmp dword [0x10161a38], ebx
jbe 0x10015276
mov edi, 0x1012ac27
lea esi, [esp + 0x34]
call fcn.1001b2c0
mov dword [esp + 0xb0], 1
mov ecx, dword [0x10161524]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x28]
call eax
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [esp + 0x10]
push ecx
push 0x40
mov esi, eax
push 1
push esi
call edi
push 1
push 0x100291b0
push esi
call dword [sym.imp.MSVCR100.dll_memmove]
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push eax
push 1
push esi
call edi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov dword [esp + 0xb0], 0xffffffff
mov dword [0x10161a38], ebx
cmp dword [0x101618b8], ebx
je 0x10015283
call fcn.10014e80
mov eax, dword [0x10160e68]
cmp eax, ebx
jbe 0x100152ae
mov esi, dword [0x10161a3c]
cmp esi, ebx
jbe 0x100152ae
push 0x64
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x30
push ebx
push esi
call sub.MSVCR100.dll_memset
add esp, 0xc
call fcn.1000c760
test al, al
je 0x1001530b
cmp byte [0x1015f342], 0
je 0x100152d4
cmp byte [0x10161562], 0
jne 0x100152db
mov byte [0x10161562], 1
mov al, 1
jmp 0x100152dd
mov byte [0x10161562], 0
xor al, al
test al, 1
je 0x100152f2
xor ecx, ecx
cmp dword [0x101616f4], ebx
sete cl
mov dword [0x101616f4], ecx
call fcn.100113e0
call fcn.100127a0
call fcn.10012bd0
call fcn.10013470
jmp 0x10015430
mov edi, 0x1a8b8867
cmp dword [0x101617f0], ebx
je 0x10015351
lea esi, [esp + 0x50]
call fcn.1001b130
mov dword [esp + 0xb0], 2
mov ecx, dword [0x10161524]
mov edx, dword [ecx]
push 0x100291b4
push eax
mov eax, dword [edx + 0x28]
call eax
mov esi, 1
mov edi, eax
call fcn.10002db0
lea ecx, [esp + 0x50]
jmp 0x10015388
lea esi, [esp + 0x78]
call fcn.1001b130
mov dword [esp + 0xb0], 3
mov ecx, dword [0x10161524]
mov edx, dword [ecx]
push 0x100291b8
push eax
mov eax, dword [edx + 0x28]
call eax
mov esi, 1
mov edi, eax
call fcn.10002db0
lea ecx, [esp + 0x78]
push 0x27
push ebx
push ecx
mov dword [esp + 0xbc], 0xffffffff
call sub.MSVCR100.dll_memset
mov eax, dword [0x101617dc]
add esp, 0xc
mov dword [0x1016172c], ebx
mov dword [0x10161670], ebx
mov dword [0x10161684], ebx
mov dword [0x101617c4], ebx
mov dword [0x101617c8], ebx
mov dword [0x10161744], ebx
mov dword [0x10161808], ebx
mov dword [0x101617e4], ebx
mov dword [0x101617f4], ebx
mov dword [0x10161724], ebx
cmp eax, ebx
je 0x10015430
dec eax
cmp eax, 4
ja case.default.0x100153ea
jmp dword [eax*4 + 0x100155b0]
mov dword [0x101610a8], 0x3e8
jmp case.default.0x100153ea
mov dword [0x101610a8], 0x7d0
jmp case.default.0x100153ea
mov dword [0x101610a8], 0xbb8
jmp case.default.0x100153ea
mov dword [0x101610a8], 0xfa0
jmp case.default.0x100153ea
mov dword [0x101610a8], 0x1388
call fcn.10012f90
cmp dword [0x101617e8], ebx
je 0x1001558a
mov edi, 0xc
jmp 0x10015445
xor ebx, ebx
mov ecx, 0x24
xor eax, eax
lea esp, [esp]
mov dl, byte [eax + 0x100291bc]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [esp + eax + 0x14], dl
jns 0x1001546d
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0xd
jl 0x10015450
mov byte [esp + 0x21], 0
mov dword [esp + 0xb0], 4
mov ecx, dword [0x10161524]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
lea edx, [esp + 0x14]
push edx
call eax
mov ebx, dword [eax]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov word [esp + 0x20], ax
mov ecx, 0x24
nop
mov dl, byte [eax + 0x100291cc]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [esp + eax + 0x24], dl
jns 0x100154cd
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0xd
jl 0x100154b0
mov byte [esp + 0x31], 0
mov dword [esp + 0xb0], 5
mov ecx, dword [0x10161524]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
lea edx, [esp + 0x24]
push edx
call eax
mov esi, dword [eax]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov word [esp + 0x30], ax
mov ecx, 0x24
nop
mov dl, byte [eax + str.gMGIFLF]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [esp + eax + 0x34], dl
jns 0x1001552d
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0xd
jl 0x10015510
mov byte [esp + 0x41], 0
mov dword [esp + 0xb0], 6
mov ecx, dword [0x10161524]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
lea edx, [esp + 0x34]
push edx
call eax
mov ecx, dword [eax]
xor eax, eax
mov edx, edi
mov dword [esp + 0xb0], 0xffffffff
sub edx, esi
add edx, ecx
add edi, 4
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov word [esp + 0x40], ax
mov dword [edx + ebx], eax
cmp edi, 0x34
jl 0x10015443
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.1001efe5
mov esp, ebp
pop ebp
ret