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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x10096018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x6c], edi
mov ecx, dword [edi + 0x48]
cmp ecx, dword [edi + 0x4c]
je 0x1005dae8
imul eax, dword [edi + 0x24], 0x3110
add eax, ecx
lea ecx, [eax + 0x3104]
mov dword [ebp - 0x70], eax
mov eax, dword [ecx]
mov dword [ebp - 0x78], ecx
mov dword [ecx + 4], eax
mov ecx, edi
call fcn.1005d2d0
mov eax, dword [ebp - 0x6c]
mov esi, dword [edi + 4]
mov edi, dword [edi + 8]
mov dword [ebp - 0xc], esi
mov dword [eax + 0x1c], 0
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push 0x405360
mov dword [ebp - 0x7c], edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0
mov byte [0x405360], 0xc3
push dword [ebp - 8]
push 1
push 0x405360
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 8], 0
cmp dword [ecx + 8], 0
jbe 0x1005d9f1
lea eax, [edi + 0x28]
mov dword [ebp - 0x80], 0x56b5d0
mov dword [ebp - 0x74], eax
mov edx, 0x40e6a0
mov al, byte [ecx + 0xc]
mov byte [esi + 0x1a], al
mov al, byte [ecx + 0xd]
mov ecx, dword [esi]
mov byte [esi + 0x1b], al
mov eax, 0x74e338
mov eax, dword [eax]
mov dword [ecx + 0xdc], eax
cmp dword [edi + 0x2c], 0
mov eax, dword [esi]
movss xmm0, dword [eax + 0x108]
movss dword [ebp - 0x48], xmm0
movss xmm0, dword [eax + 0x10c]
movss dword [ebp - 0x44], xmm0
movss xmm0, dword [eax + 0x110]
movss dword [ebp - 0x40], xmm0
movss xmm0, dword [eax + 0x1c]
movss dword [ebp - 0x60], xmm0
movss xmm0, dword [eax + 0x20]
movss dword [ebp - 0x5c], xmm0
movss xmm0, dword [eax + 0x24]
movss dword [ebp - 0x58], xmm0
movss xmm0, dword [eax + 0x28]
movss dword [ebp - 0x54], xmm0
movss xmm0, dword [eax + 0x2c]
movss dword [ebp - 0x50], xmm0
movss xmm0, dword [eax + 0x30]
mov al, byte [esi + 0x1a]
mov byte [ebp - 0x3c], al
mov al, byte [esi + 0x1b]
movss dword [ebp - 0x4c], xmm0
mov byte [ebp - 0x3b], al
je 0x1005d6ed
mov eax, dword [0x1009a47c]
cmp byte [eax + 0x44], 0
je 0x1005d6e6
or dword [esi + 8], 0x2002
mov dword [ebp - 0x1c], 0x7d
push esi
call edx
mov eax, dword [esi]
add esp, 4
movss xmm1, dword [eax + 0x28]
movss xmm0, dword [eax + 0x2c]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
call fcn.10005350
comiss xmm0, dword [0x1008e4a8]
mov eax, dword [edi + 0x2c]
jae 0x1005d720
test eax, eax
jne 0x1005d737
test eax, eax
lea ecx, [ebp - 0x60]
setne dl
call fcn.100065d0
mov eax, dword [esi]
movss dword [eax + 0x10c], xmm0
mov ecx, dword [esi]
lea eax, [edi + 0x18]
push eax
lea eax, [edi + 0xc]
add ecx, 0x108
push eax
mov edx, edi
call fcn.10064870
add esp, 8
cmp dword [edi + 0x2c], 0
jne 0x1005d770
mov eax, dword [esi]
mov dl, byte [esi + 0x1b]
mov cl, byte [esi + 0x1a]
movss xmm0, dword [eax + 0x10c]
call fcn.1005e9b0
mov ecx, eax
jmp 0x1005d773
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
mov eax, 0x7d
cmove ecx, eax
mov eax, 0x3e8
cdq
idiv ecx
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x74]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mov dword [ecx], eax
divss xmm0, dword [0x1008e4f4]
movss dword [edi + 0x24], xmm0
mov edi, str.g_gravity
call dword [ebp - 0x80]
test eax, eax
je 0x1005d7c8
movss xmm0, dword [eax + 0xc]
ucomiss xmm0, dword [0x1008e24c]
lahf
test ah, 0x44
jp 0x1005d7c8
mov eax, dword [esi]
mov dword [eax + 0x58], 0x320
mov edi, dword [ebp - 0x7c]
cmp dword [edi + 0x2c], 0
je 0x1005d80a
mov eax, dword [esi]
movss xmm1, dword [eax + 0x28]
movss xmm0, dword [eax + 0x2c]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
call fcn.10005350
mov eax, dword [0x1009a478]
comiss xmm0, dword [eax + 0xc]
jb 0x1005d800
or dword [esi + 8], 0x400
push edi
push esi
call dword [0x10099c70]
jmp 0x1005d812
push edi
push esi
call dword [0x10096b70]
add esp, 8
mov eax, 0x410660
push edi
push esi
call eax
push edi
push esi
call fcn.10004490
mov eax, dword [esi]
add esp, 0x10
movss xmm0, dword [eax + 0x28]
movss dword [ebp - 0x64], xmm0
fld dword [ebp - 0x64]
fistp dword [ebp - 0x68]
movd xmm0, dword [ebp - 0x68]
cvtdq2ps xmm0, xmm0
movss dword [eax + 0x28], xmm0
movss xmm0, dword [eax + 0x2c]
movss dword [ebp - 0x64], xmm0
fld dword [ebp - 0x64]
fistp dword [ebp - 0x68]
movd xmm0, dword [ebp - 0x68]
cvtdq2ps xmm0, xmm0
movss dword [eax + 0x2c], xmm0
movss xmm0, dword [eax + 0x30]
movss dword [ebp - 0x64], xmm0
fld dword [ebp - 0x64]
fistp dword [ebp - 0x68]
movd xmm0, dword [ebp - 0x68]
cvtdq2ps xmm0, xmm0
mov ecx, dword [ebp - 0x74]
movss dword [eax + 0x30], xmm0
mov eax, dword [esi]
movss xmm0, dword [eax + 0x108]
movss dword [ebp - 0x48], xmm0
movss xmm0, dword [eax + 0x10c]
movss dword [ebp - 0x44], xmm0
movss xmm0, dword [eax + 0x110]
movss dword [ebp - 0x40], xmm0
movss xmm0, dword [eax + 0x1c]
movss dword [ebp - 0x60], xmm0
movss xmm0, dword [eax + 0x20]
movss dword [ebp - 0x5c], xmm0
movss xmm0, dword [eax + 0x24]
movss dword [ebp - 0x58], xmm0
movss xmm0, dword [eax + 0x28]
movss dword [ebp - 0x54], xmm0
movss xmm0, dword [eax + 0x2c]
movss dword [ebp - 0x50], xmm0
movss xmm0, dword [eax + 0x30]
mov al, byte [esi + 0x1a]
mov byte [ebp - 0x3c], al
mov al, byte [esi + 0x1b]
mov byte [ebp - 0x3b], al
mov eax, 0x3e8
cdq
idiv dword [ecx]
movss dword [ebp - 0x4c], xmm0
movups xmm0, xmmword [esi + 0xcc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x78]
movups xmmword [ebp - 0x38], xmm0
mov word [ebp - 0x20], 0
movss xmm0, dword [esi + 0xdc]
movss dword [ebp - 0x28], xmm0
movss xmm0, dword [esi + 0xe0]
movss dword [ebp - 0x24], xmm0
movups xmm0, xmmword [esi + 4]
mov word [ebp - 0x18], 0
movups xmmword [esi + 0x24], xmm0
movups xmm0, xmmword [esi + 0x14]
mov dword [esi + 8], 0
movups xmmword [esi + 0x34], xmm0
mov ecx, dword [eax + 4]
mov dword [ebp - 0x64], ecx
sub ecx, dword [eax]
mov eax, 0x6bca1af3
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
inc eax
add eax, edx
cmp eax, 0x35e50d7
jae 0x1005d9c0
mov edx, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x64]
cmp ecx, dword [edx + 8]
je 0x1005d9af
movups xmm0, xmmword [ebp - 0x60]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [ebp - 0x50]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x40]
movups xmmword [ecx + 0x20], xmm0
movups xmm0, xmmword [ebp - 0x30]
movups xmmword [ecx + 0x30], xmm0
movq xmm0, qword [ebp - 0x20]
movq qword [ecx + 0x40], xmm0
mov eax, dword [ebp - 0x18]
mov dword [ecx + 0x48], eax
add dword [edx + 4], 0x4c
mov eax, dword [ebp - 0x6c]
jmp 0x1005d9d6
lea eax, [ebp - 0x60]
push eax
push ecx
mov ecx, edx
call fcn.1005a7a0
mov eax, dword [ebp - 0x6c]
jmp 0x1005d9d6
push str.exceeded_maximum_amount_of_frames__n
push 1
call fcn.10007dd0
mov eax, dword [ebp - 0x6c]
add esp, 8
mov byte [eax + 0x54], 0
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x70]
inc edx
inc dword [eax + 0x1c]
mov dword [ebp - 8], edx
cmp edx, dword [ecx + 8]
mov edx, 0x40e6a0
jb 0x1005d642
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea edx, [ecx + 0x10]
test edx, edx
je 0x1005da29
test esi, esi
je 0x1005da19
mov ecx, 0x44
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
jmp 0x1005da39
push 0x110
push 0
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
call edi
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov dword [eax], 0x16
call esi
mov eax, dword [ebp - 0x70]
add eax, 0x120
jne 0x1005da47
call edi
jmp 0x1005da7d
mov esi, dword [ebp - 0x7c]
test esi, esi
je 0x1005da65
mov ecx, 0x20
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
jmp 0x1005da85
push 0x80
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
call edi
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov dword [eax], 0x16
call esi
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x70]
add eax, 0x1a0
je 0x1005dab4
push 0x2f64
test ecx, ecx
je 0x1005daa9
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x1005dabe
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
call edi
mov dword [eax], 0x16
call esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0xc]
push eax
push 0x40
push 1
push 0x405360
call esi
push 0
mov byte [0x405360], 0x53
push dword [ebp - 0xc]
push 1
push 0x405360
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1007a095
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4