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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov eax, dword [0x10135018]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
push esi
push edi
cmp eax, 8
ja case.default.0x1005a592
jmp dword [eax*4 + 0x1005a940]
mov dword [0xe61e58], 0x280
mov dword [0xe61e5c], 0x1e0
mov dword [0x81c0380], 0xc
jmp 0x1005a6dc
mov dword [0xe61e58], 0x320
mov dword [0xe61e5c], 0x258
mov dword [0x81c0380], 0xd
jmp 0x1005a6dc
mov dword [0xe61e58], 0x400
mov dword [0xe61e5c], 0x300
mov dword [0x81c0380], 0xe
jmp 0x1005a6dc
mov dword [0xe61e58], 0x500
mov dword [0xe61e5c], 0x400
mov dword [0x81c0380], 0xf
jmp 0x1005a6dc
mov dword [0xe61e58], 0x556
mov dword [0xe61e5c], 0x300
mov dword [0x81c0380], 0xf
jmp 0x1005a6dc
mov dword [0xe61e58], 0x5a0
mov dword [0xe61e5c], 0x384
mov dword [0x81c0380], 0xf
jmp 0x1005a6dc
mov dword [0xe61e58], 0x640
mov dword [0xe61e5c], 0x384
mov dword [0x81c0380], 0xf
jmp 0x1005a6dc
mov dword [0xe61e58], 0x690
mov dword [0xe61e5c], 0x41a
mov dword [0x81c0380], 0xf
jmp 0x1005a6dc
mov dword [0xe61e58], 0x780
mov dword [0xe61e5c], 0x438
mov dword [0x81c0380], 0xf
jmp 0x1005a6dc
mov dword [0xe61e58], 0x400
mov dword [0xe61e5c], 0x300
push ecx
push dword [0x81c0380]
call fcn.1005a390
mov esi, 0x407b20
call esi
mov ecx, dword [0xe61e58]
mov dword [eax + 0x28], ecx
call esi
mov ecx, dword [0xe61e5c]
push 0
mov dword [eax + 0x2c], ecx
movd xmm0, dword [0xe61e58]
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x1012a4a4]
movss dword [0xe7c3d4], xmm0
movd xmm0, dword [0xe61e5c]
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x1012a4a0]
movss dword [0xe7c3d8], xmm0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov eax, dword [0xe61e58]
mov dword [esp + 0x18], eax
mov eax, dword [0xe61e5c]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
cmp dword [0xe60974], 0
je 0x1005a7c7
push 0x2ca0000
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRect]
mov eax, dword [esp + 0xc]
sub dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x18], eax
push 0x2ca0000
push 0xfffffffffffffff0
push dword [0xe8c578]
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x40
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 1
call esi
sub eax, dword [esp + 0x24]
cdq
sub eax, edx
sar eax, 1
push eax
push 0
call esi
sub eax, dword [esp + 0x24]
cdq
sub eax, edx
sar eax, 1
push eax
jmp 0x1005a7e1
push 0xcf0000
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRect]
push 0x40
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0
push 0
push 0xfffffffffffffffe
push dword [0xe8c578]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, 0x41fe10
call esi
mov edx, 0x41ff20
mov ecx, eax
call edx
push dword [0xe8c580]
push 0
call esi
lea edx, [esi + 0x70]
mov ecx, eax
call edx
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 8]
push eax
push 0x40
push 8
push 0xd2c848
call esi
movsd xmm0, qword [0x1012a3e0]
lea eax, [esp + 8]
push eax
movsd qword [0xd2c848], xmm0
push dword [esp + 0xc]
push 8
push 0xd2c848
call esi
lea eax, [esp + 8]
push eax
push 0x40
push 8
push 0xd2c898
call esi
movsd xmm0, qword [0x1012a3e0]
lea eax, [esp + 8]
push eax
movsd qword [0xd2c898], xmm0
push dword [esp + 0xc]
push 8
push 0xd2c898
call esi
mov edi, 0x861110
call edi
mov edx, 0x861220
mov ecx, eax
call edx
mov edx, 0x785b70
mov ecx, eax
call edx
call edi
mov esi, dword [eax + 0x10]
call edi
push 0x17e
push 0
push esi
push dword [eax]
call edi
mov edx, 0x785870
mov ecx, dword [eax + 0xc]
call edx
call edi
mov edx, 0x7d2530
mov ecx, dword [eax + 0x98]
call edx
push 0x228
mov eax, 0x9d00c5
call eax
add esp, 4
test eax, eax
je 0x1005a8fc
mov edx, 0x7d2480
mov ecx, eax
call edx
mov esi, eax
call edi
mov dword [eax + 0x98], esi
test esi, esi
je 0x1005a908
call edi
push 0
push 0
mov ecx, esi
push dword [eax]
mov eax, 0x7d25c0
call eax
jmp 0x1005a908
call edi
mov dword [eax + 0x98], 0
call edi
mov edx, 0x840a60
mov ecx, dword [eax + 0x54]
call edx
call edi
push 0
push 0x104
push dword [eax]
call edi
mov edx, 0x840610
mov ecx, dword [eax + 0x54]
call edx
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
xor ecx, esp
call fcn.1008173f
mov esp, ebp
pop ebp
ret 4