Function at 0x10015990
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 0x10022c4e
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x1002f018]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
mov eax, dword [0x1002f018]
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 0x100159fd
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0x17
jl 0x100159e0
mov byte [esp + 0x4b], bl
mov dword [esp + 0xb0], ebx
mov ecx, dword [0x10162524]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
lea edx, [esp + 0x34]
push edx
call eax
mov esi, eax
call fcn.1000acf0
mov eax, dword [esi + eax]
mov dword [0x10161f84], eax
mov dword [esp + 0xb0], 0xffffffff
cmp eax, ebx
je 0x10015efa
call fcn.1000acf0
push eax
call fcn.1000abd0
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp dword [0x101620b4]
call fcn.1000acf0
push eax
call fcn.1000ac60
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp dword [0x1015f998]
call fcn.1000acf0
push eax
call fcn.1000abd0
cdq
sub eax, edx
sar eax, 1
mov dword [0x10161e74], eax
call fcn.1000acf0
push eax
call fcn.1000ac60
cdq
sub eax, edx
sar eax, 1
mov dword [0x10161e78], eax
call fcn.100103e0
cmp dword [0x10160c10], ebx
jne 0x10015ad5
push ebx
push 0x10160c10
push 0x10026a9c
push 0x800
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.DINPUT8.dll_DirectInput8Create]
jmp 0x10015ada
call fcn.100032b0
mov esi, dword [0x10161f84]
cmp dword [0x10162a20], ebx
jne 0x10015b23
cmp dword [0x10162a28], ebx
jne 0x10015afe
cmp byte [0x1016262b], 1
jne 0x10015afe
call fcn.10010140
fild dword [0x10030458]
sub esp, 8
mov ecx, esi
fstp dword [esp + 4]
fild dword [0x1003045c]
fstp dword [esp]
call fcn.1000d540
add esp, 8
call fcn.1000dc30
call fcn.1000df50
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 0x101620d0
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x14
cmp dword [0x10162a38], ebx
jbe 0x10015be6
mov edi, 0x1012bba7
lea esi, [esp + 0x34]
call fcn.1001bc90
mov dword [esp + 0xb0], 1
mov ecx, dword [0x10162524]
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 0x1002a2dc
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 [0x10162a38], ebx
cmp dword [0x101628b8], ebx
je 0x10015bf3
call fcn.10015650
mov eax, dword [0x10161e68]
cmp eax, ebx
jbe 0x10015c1e
mov esi, dword [0x10162a3c]
cmp esi, ebx
jbe 0x10015c1e
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.1000cfb0
test al, al
je 0x10015c7b
cmp byte [0x10160342], 0
je 0x10015c44
cmp byte [0x10162562], 0
jne 0x10015c4b
mov byte [0x10162562], 1
mov al, 1
jmp 0x10015c4d
mov byte [0x10162562], 0
xor al, al
test al, 1
je 0x10015c62
xor ecx, ecx
cmp dword [0x101626f4], ebx
sete cl
mov dword [0x101626f4], ecx
call fcn.10011c00
call fcn.10013000
call fcn.10013370
call fcn.10013c30
jmp 0x10015da0
mov edi, 0x1a8b9817
cmp dword [0x101627f0], ebx
je 0x10015cc1
lea esi, [esp + 0x50]
call fcn.1001bb00
mov dword [esp + 0xb0], 2
mov ecx, dword [0x10162524]
mov edx, dword [ecx]
push 0x1002a2e0
push eax
mov eax, dword [edx + 0x28]
call eax
mov esi, 1
mov edi, eax
call fcn.10002dc0
lea ecx, [esp + 0x50]
jmp 0x10015cf8
lea esi, [esp + 0x78]
call fcn.1001bb00
mov dword [esp + 0xb0], 3
mov ecx, dword [0x10162524]
mov edx, dword [ecx]
push 0x1002a2e4
push eax
mov eax, dword [edx + 0x28]
call eax
mov esi, 1
mov edi, eax
call fcn.10002dc0
lea ecx, [esp + 0x78]
push 0x27
push ebx
push ecx
mov dword [esp + 0xbc], 0xffffffff
call sub.MSVCR100.dll_memset
mov eax, dword [0x101627dc]
add esp, 0xc
mov dword [0x1016272c], ebx
mov dword [0x10162670], ebx
mov dword [0x10162684], ebx
mov dword [0x101627c4], ebx
mov dword [0x101627c8], ebx
mov dword [0x10162744], ebx
mov dword [0x10162808], ebx
mov dword [0x101627e4], ebx
mov dword [0x101627f4], ebx
mov dword [0x10162724], ebx
cmp eax, ebx
je 0x10015da0
dec eax
cmp eax, 4
ja case.default.0x10015d5a
jmp dword [eax*4 + 0x10015f20]
mov dword [0x101620a8], 0x3e8
jmp case.default.0x10015d5a
mov dword [0x101620a8], 0x7d0
jmp case.default.0x10015d5a
mov dword [0x101620a8], 0xbb8
jmp case.default.0x10015d5a
mov dword [0x101620a8], 0xfa0
jmp case.default.0x10015d5a
mov dword [0x101620a8], 0x1388
call fcn.10013740
cmp dword [0x101627e8], ebx
je 0x10015efa
mov edi, 0xc
jmp 0x10015db5
xor ebx, ebx
mov ecx, 0x24
xor eax, eax
lea esp, [esp]
mov dl, byte [eax + 0x1002a2e8]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [esp + eax + 0x14], dl
jns 0x10015ddd
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0xd
jl 0x10015dc0
mov byte [esp + 0x21], 0
mov dword [esp + 0xb0], 4
mov ecx, dword [0x10162524]
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 + 0x1002a2f8]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [esp + eax + 0x24], dl
jns 0x10015e3d
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0xd
jl 0x10015e20
mov byte [esp + 0x31], 0
mov dword [esp + 0xb0], 5
mov ecx, dword [0x10162524]
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 0x10015e9d
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0xd
jl 0x10015e80
mov byte [esp + 0x41], 0
mov dword [esp + 0xb0], 6
mov ecx, dword [0x10162524]
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 0x10015db3
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.1001fa55
mov esp, ebp
pop ebp
ret