Function at 0x1005cad0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
xorps xmm0, xmm0
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x44]
push eax
movdqu xmmword [ebp - 0x40], xmm0
movdqu xmmword [ebp - 0x30], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp + 8]
mov ecx, 0x1000
cmp dword [ebp - 0x28], ecx
cmova ecx, dword [ebp - 0x28]
xor edx, edx
div ecx
xor ebx, ebx
mov dword [ebp - 4], ecx
mov edi, eax
xor esi, esi
imul edi, ecx
cmp dword [ebp + 0xc], edi
jae 0x1005cd60
nop
cmp edi, dword [ebp + 0x10]
jae 0x1005cd60
push 0x1c
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1005cd60
cmp dword [ebp - 0x10], 0x10000
jne 0x1005cb6d
mov ecx, dword [ebp - 4]
cmp dword [ebp - 0x14], ecx
jb 0x1005cb6d
push 0x40
push 0x3000
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
movd xmm0, ebx
pshufd xmm2, xmm0, 0
test ebx, ebx
jne 0x1005cb9e
lea ecx, [esi + 1]
and esi, 0x80000001
jns 0x1005cb7d
dec esi
or esi, 0xfffffffe
inc esi
neg esi
sbb esi, esi
and esi, 2
dec esi
imul esi, ecx
imul esi, dword [ebp - 4]
add edi, esi
mov esi, ecx
cmp dword [ebp + 0xc], edi
jb 0x1005cb20
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x8d3dcb09
mov dword [ebx + 0x6c], 0
mul dword [ebp - 4]
lea eax, [ebx + 0x74]
mov edi, 1
mov esi, edx
mov dword [ebx + 0x70], eax
shr esi, 6
lea eax, [esi - 1]
cmp esi, edi
jbe 0x1005cd54
cmp eax, 8
jb 0x1005cd2d
cmp dword [0x1013ee2c], 2
jl 0x1005cd2d
movdqa xmm5, xmmword [0x100a55d0]
lea ecx, [ebx + 0x154]
movdqa xmm3, xmmword [str.ttttkv]
and eax, 7
movdqa xmm4, xmmword [0x100a55c0]
mov edx, esi
sub edx, eax
movd xmm0, edi
lea eax, [edi + 4]
pshufd xmm1, xmm0, 0
lea ecx, [ecx + 0x3a0]
paddd xmm1, xmm5
add edi, 8
movdqa xmm0, xmm1
psubd xmm0, xmm4
pmulld xmm0, xmm3
paddd xmm0, xmm2
movd dword [ecx - 0x414], xmm0
psrldq xmm0, 4
movd dword [ecx - 0x3a0], xmm0
psrldq xmm0, 4
movd dword [ecx - 0x32c], xmm0
psrldq xmm0, 4
movd dword [ecx - 0x2b8], xmm0
movdqa xmm0, xmm4
paddd xmm0, xmm1
pmulld xmm0, xmm3
paddd xmm0, xmm2
movd dword [ecx - 0x410], xmm0
psrldq xmm0, 4
movd dword [ecx - 0x39c], xmm0
psrldq xmm0, 4
movd dword [ecx - 0x328], xmm0
psrldq xmm0, 4
movd dword [ecx - 0x2b4], xmm0
movd xmm0, eax
pshufd xmm1, xmm0, 0
paddd xmm1, xmm5
movdqa xmm0, xmm1
paddd xmm1, xmm4
psubd xmm0, xmm4
pmulld xmm0, xmm3
paddd xmm0, xmm2
movd dword [ecx - 0x244], xmm0
psrldq xmm0, 4
movd dword [ecx - 0x1d0], xmm0
psrldq xmm0, 4
movd dword [ecx - 0x15c], xmm0
psrldq xmm0, 4
movd dword [ecx - 0xe8], xmm0
pmulld xmm1, xmm3
paddd xmm1, xmm2
movd dword [ecx - 0x240], xmm1
psrldq xmm1, 4
movd dword [ecx - 0x1cc], xmm1
psrldq xmm1, 4
movd dword [ecx - 0x158], xmm1
psrldq xmm1, 4
movd dword [ecx - 0xe4], xmm1
cmp edi, edx
jb 0x1005cc03
cmp edi, esi
jae 0x1005cd54
imul eax, edi, 0x74
lea ecx, [ebx + 0x6c]
mov edx, esi
add ecx, eax
sub edx, edi
lea ecx, [ecx]
lea eax, [ecx - 0xe0]
mov dword [ecx], eax
lea eax, [ecx + 8]
mov dword [ecx + 4], eax
lea ecx, [ecx + 0x74]
dec edx
jne 0x1005cd40
mov eax, dword [0x1013e8e4]
imul ecx, esi, 0x74
mov dword [ecx + ebx - 4], eax
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret