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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [esp + 0x40]
mov ebp, dword [eax]
mov edi, dword [eax + 4]
cmp ebp, 0x8000000d
jne 0x100ad3fd
mov eax, dword [edx]
xorps xmm0, xmm0
mov dword [esp], ecx
mov ebx, dword [eax]
lea eax, [esp + 8]
movups xmmword [esp + 0x18], xmm0
movups xmmword [esp + 8], xmm0
mov dword [esp + 0x28], 0
push eax
call sub.kernel32.dll_GetSystemInfo
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x100ad437
mov eax, ebx
xor edx, edx
lea esi, [ecx + ebx]
div ecx
sub esi, edx
test edx, edx
cmove esi, ebx
test esi, esi
cmove esi, ecx
push 0x40
push 0x3000
push esi
push edi
call sub.kernel32.dll_VirtualAlloc
test eax, eax
je 0x100ad418
mov ebx, eax
movzx eax, byte [0x10199148]
xor ecx, ecx
mov edx, 0xc
call fcn.100ea7d0
test eax, eax
je 0x100ad441
mov dword [eax], 0
mov dword [eax + 4], esi
mov dword [esp + 4], ebx
mov byte [eax + 8], 1
mov edi, eax
xor ecx, ecx
mov edx, 0x18
movzx eax, byte [0x10199148]
call fcn.100ea7d0
test eax, eax
je 0x100ad428
mov dword [eax], 1
mov dword [eax + 4], 1
mov word [eax + 8], 0
mov dword [eax + 0xc], 1
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], 1
mov ebp, eax
xor ecx, ecx
mov edx, 0x18
xor ebx, ebx
movzx eax, byte [0x10199148]
call fcn.100ea7d0
test eax, eax
je 0x100ad428
mov dword [eax], 1
mov dword [eax + 4], 1
mov edi, eax
mov dword [eax + 8], 1
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov dword [edi + 0x10], eax
mov eax, 0x10183f74
mov dword [edi + 0x14], esi
jmp 0x100ad405
mov eax, dword [eax + 8]
mov ebx, 1
mov dword [ecx], ebx
mov dword [ecx + 4], ebp
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], eax
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.kernel32.dll_GetLastError
mov eax, dword [esp]
mov dword [eax], 2
jmp 0x100ad410
mov ecx, 4
mov edx, 0x18
call fcn.1010cb80
mov ecx, 0x10129668
call fcn.1010d5f0
mov ecx, 4
mov edx, 0xc
call fcn.1010cb80
push esi
sub esp, 0x24
mov eax, dword [esp + 0x2c]
cmp dword [eax + 0xc], 0
je 0x100ad4a7
cmp dword [eax], 0
je 0x100ad48d
push 0x8000
push 0
push dword [eax + 8]
call sub.kernel32.dll_VirtualFree
test eax, eax
jne 0x100ad4a7
call sub.kernel32.dll_GetLastError
mov ecx, esp
mov dword [esp], eax
mov dword [esp + 0xc], 0x101296d8
jmp 0x100ad510
mov esi, dword [eax + 4]
push dword [eax + 8]
call sub.kernel32.dll_UnmapViewOfFile
test eax, eax
je 0x100ad4ac
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
je 0x100ad4fe
add esp, 0x24
pop esi
ret
call sub.kernel32.dll_GetLastError
lea ecx, [esp + 4]
mov edx, esp
mov dword [esp + 0xc], 0x10129690
mov dword [esp + 0x10], 2
mov dword [esp + 0x1c], 0
mov dword [esp], eax
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0xc]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x1000cca0
mov dword [esp + 0x18], 1
call fcn.100e9180
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
jne 0x100ad4a7
call sub.kernel32.dll_GetLastError
mov ecx, esp
mov dword [esp], eax
mov dword [esp + 0xc], 0x101296b4
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x1000cca0
lea ecx, [esp + 0xc]
lea eax, [esp + 4]
mov dword [esp + 0x10], 2
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 1
call fcn.100e9180
add esp, 0x24
pop esi
ret