Function at 0x10001a0b
Capabilities:
Get system information on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x38
mov edi, ecx
cmp dword [0x10009ee8], 0
jne 0x10001a43
mov eax, dword [0x10009ee0]
test eax, eax
jne 0x10001a39
lea esi, [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esi + 4]
mov dword [0x10009ee0], eax
mov dword [0x10009ee8], eax
mov dword [0x10009eec], eax
cmp dword [0x10009ef0], 0
jne 0x10001a72
mov eax, dword [0x10009ee4]
test eax, eax
jne 0x10001a68
lea esi, [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esi + 0x1c]
mov dword [0x10009ee4], eax
mov dword [0x10009ef0], eax
mov dword [0x10009ef4], eax
cmp dword [0x10009ef8], 0
jne 0x10001a8c
xor ecx, ecx
xor edx, edx
call fcn.10001dbf
test eax, eax
je 0x10001d00
test edi, edi
js 0x10001bd4
mov ecx, dword [0x10009ef8]
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
lea esi, [edx + edi]
sub esi, eax
test esi, esi
jle 0x10001c50
mov ebx, dword [0x10009eec]
lea edx, [esi + ebx]
dec edx
neg ebx
and ebx, edx
mov dword [esp + 0xc], ebx
lea edx, [eax + ebx]
mov esi, dword [ecx + 8]
sub edx, esi
mov dword [esp + 0x10], edx
test edx, edx
jle 0x10001cbc
sub esi, eax
test esi, esi
jle 0x10001afb
push 4
push 0x1000
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [0x10009ef8]
cmp eax, dword [ecx + 4]
jne 0x10001d00
add eax, esi
mov dword [ecx + 4], eax
dec dword [esp + 0x10]
mov dword [esp + 8], edi
lea esi, [edi - 1]
mov bl, 1
mov edi, dword [0x10009ef4]
mov eax, dword [esp + 0x10]
add eax, edi
neg edi
and edi, eax
mov eax, dword [0x10009ef8]
mov eax, dword [eax + 8]
mov dword [esp + 0x14], eax
push 0x1c
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
setne al
mov byte [esp + 3], al
mov dword [esp + 4], ebx
je 0x10001b8e
xor ebx, ebx
cmp dword [esp + 0x24], 0x10000
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
jne 0x10001b67
mov eax, ecx
xor edx, edx
div dword [0x10009ef0]
test edx, edx
jne 0x10001b67
cmp ebp, edi
jae 0x10001b9f
mov edi, dword [0x10009ef4]
lea eax, [esi + edi]
neg edi
and edi, eax
add ecx, ebp
mov dword [esp + 0x14], ecx
push 0x1c
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov bl, 1
test eax, eax
jne 0x10001b43
test byte [esp + 4], 1
jne 0x10001d00
mov ecx, dword [esp + 0x14]
jmp 0x10001ba5
mov eax, ebx
mov byte [esp + 3], bl
push 1
push 0x2000
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x10001cf4
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x1e7
je 0x10001b08
jmp 0x10001d00
mov esi, edi
neg esi
mov edx, dword [0x10009ef8]
mov eax, dword [edx]
mov ebp, dword [edx + 8]
lea ecx, [eax + edi]
sub ebp, dword [edx + 0xc]
cmp ecx, ebp
jae 0x10001c57
push 0x8000
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
je 0x10001d00
mov ebx, dword [0x10009ef8]
mov eax, dword [ebx]
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
push 0x14
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x10001d00
add esi, ebp
sub esi, dword [esp + 4]
mov dword [0x10009ef8], edi
mov eax, dword [edi]
mov ebp, dword [edi + 8]
mov ecx, eax
sub ecx, esi
sub ebp, dword [edi + 0xc]
cmp ecx, ebp
jb 0x10001bed
mov edx, esi
neg edx
mov ebx, edx
mov edx, edi
jmp 0x10001c59
mov esi, edi
jmp 0x10001ce5
mov ebx, edi
mov edi, dword [edx + 4]
mov ebp, edx
mov edx, edi
sub edx, ecx
mov ecx, dword [0x10009eec]
cmp edx, ecx
jl 0x10001c9c
neg ecx
and edx, ecx
sub edi, edx
push 0x4000
push edx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
je 0x10001d00
mov eax, dword [0x10009ef8]
mov ebx, dword [eax]
add esi, edi
sub ebx, esi
mov dword [eax + 4], edi
mov dword [eax], edi
mov ebp, dword [0x10009ef8]
mov eax, dword [ebp]
add ebx, eax
mov dword [ebp], ebx
mov edx, dword [0x10009ef8]
mov eax, dword [edx]
mov ecx, dword [edx + 8]
sub ecx, dword [edx + 0xc]
cmp ecx, eax
ja 0x10001cb8
cmp eax, dword [edx + 4]
jbe 0x10001d03
mov dword [edx], ecx
jmp 0x10001d00
mov esi, edi
mov ebp, dword [esp + 0xc]
push 4
push 0x1000
push ebp
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [0x10009ef8]
cmp eax, dword [ecx + 4]
jne 0x10001d00
add eax, ebp
mov dword [ecx + 4], eax
mov edx, dword [ecx]
add edx, esi
mov dword [ecx], edx
mov eax, dword [0x10009ef8]
mov eax, dword [eax]
sub eax, edi
jmp 0x10001d03
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x10001d0b
cmp eax, ecx
je 0x10001d0b
xor eax, eax
dec eax
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
mov cl, byte [esp + 3]
test cl, 1
je 0x10001d55
mov ebx, ecx
mov ecx, eax
mov edx, edi
call fcn.10001dbf
test eax, eax
sete cl
not bl
or bl, cl
test bl, 1
jne 0x10001da2
mov ecx, dword [0x10009ef8]
mov eax, dword [ecx]
mov edi, dword [esp + 8]
add eax, edi
mov edx, dword [ecx + 4]
mov ebp, dword [0x10009eec]
not edx
add edx, eax
add edx, ebp
neg ebp
and ebp, edx
mov esi, edi
jmp 0x10001cc2
mov ecx, dword [0x10009ef8]
mov esi, dword [ecx]
mov edx, dword [ecx + 4]
sub esi, edx
add esi, dword [esp + 8]
mov dword [ecx], edx
mov ecx, dword [0x10009ef8]
mov edx, dword [ecx]
add edx, esi
mov dword [esp + 4], edx
mov ebx, dword [ecx + 4]
mov ebp, dword [0x10009eec]
mov ecx, eax
mov edx, edi
call fcn.10001dbf
test eax, eax
je 0x10001d00
not ebx
add ebx, ebp
add ebx, dword [esp + 4]
neg ebp
and ebp, ebx
mov edi, dword [esp + 8]
jmp 0x10001db4
mov edi, dword [esp + 8]
mov esi, edi
test eax, eax
mov ebp, dword [esp + 0xc]
je 0x10001d00
mov ecx, dword [0x10009ef8]
jmp 0x10001cc2