Function at 0x40010cd0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, dword [esp + 0x30]
mov eax, dword [ebp + 0x38]
push esi
push edi
test eax, eax
je 0x40010ce7
mov ecx, dword [eax + 0x50]
jmp 0x40010ce9
xor ecx, ecx
test eax, eax
je 0x40010cf2
mov eax, dword [eax + 0x34]
jmp 0x40010cf4
xor eax, eax
push 4
push 0x2000
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
mov eax, dword [ebp + 0x38]
mov byte [esp + 0x38], 0
test eax, eax
je 0x40010d16
mov eax, dword [eax + 0x50]
jmp 0x40010d18
xor eax, eax
mov ecx, dword [ebp + 0x38]
test ecx, ecx
je 0x40010d24
mov edi, dword [ecx + 0x34]
jmp 0x40010d26
xor edi, edi
push eax
lea ebx, [esp + 0x3c]
call fcn.400013e0
test esi, esi
je 0x40010d5a
cmp byte [esp + 0x38], 0
jne 0x40010eb6
mov eax, dword [ebp + 0x38]
test eax, eax
je 0x40010d4b
mov eax, dword [eax + 0x50]
jmp 0x40010d4d
xor eax, eax
push 0x8000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x24
lea eax, [esp + 0x14]
push 0
push eax
call fcn.40001a40
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp + 0x38]
test eax, eax
je 0x40010d82
mov eax, dword [eax + 0x34]
jmp 0x40010d84
xor eax, eax
mov ecx, dword [esp + 0x2c]
lea esi, [eax + ecx]
cmp esi, dword [esp + 0x1c]
jae 0x40010ded
mov eax, dword [ebp + 0x38]
test eax, eax
je 0x40010d9d
mov eax, dword [eax + 0x50]
jmp 0x40010d9f
xor eax, eax
push 4
push 0x2000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
mov eax, dword [ebp + 0x38]
test eax, eax
je 0x40010dbc
mov eax, dword [eax + 0x50]
jmp 0x40010dbe
xor eax, eax
push eax
lea ebx, [esp + 0x3c]
call fcn.400013e0
test edi, edi
je 0x40010de1
cmp byte [esp + 0x38], 0
jne 0x40010e0a
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [esp + 0x2c]
add esi, ecx
cmp esi, dword [esp + 0x1c]
jb 0x40010d91
mov eax, dword [ebp + 0x38]
test eax, eax
je 0x40010e8a
cmp dword [eax + 0x34], ecx
jbe 0x40010e8a
test eax, eax
je 0x40010e1f
mov eax, dword [eax + 0x34]
jmp 0x40010e21
mov edx, dword [esp + 0x3c]
mov dword [edx], edi
pop edi
pop esi
pop ebp
mov eax, 0x7d00
pop ebx
add esp, 0x24
ret 8
xor eax, eax
sub eax, ecx
mov esi, eax
cmp esi, dword [esp + 0x18]
jbe 0x40010e8a
jmp 0x40010e30
mov eax, dword [ebp + 0x38]
test eax, eax
je 0x40010e3c
mov eax, dword [eax + 0x50]
jmp 0x40010e3e
xor eax, eax
push 4
push 0x2000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
mov eax, dword [ebp + 0x38]
test eax, eax
je 0x40010e5b
mov eax, dword [eax + 0x50]
jmp 0x40010e5d
xor eax, eax
push eax
lea ebx, [esp + 0x3c]
call fcn.400013e0
test edi, edi
je 0x40010e80
cmp byte [esp + 0x38], 0
jne 0x40010ea1
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
sub esi, dword [esp + 0x2c]
cmp esi, dword [esp + 0x18]
ja 0x40010e30
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
xor eax, eax
pop ebp
mov dword [ecx], eax
mov eax, 0x7d00
pop ebx
add esp, 0x24
ret 8
mov eax, dword [esp + 0x3c]
mov dword [eax], edi
pop edi
pop esi
pop ebp
mov eax, 0x7d00
pop ebx
add esp, 0x24
ret 8
mov edx, dword [esp + 0x3c]
pop edi
mov dword [edx], esi
pop esi
pop ebp
mov eax, 0x7d00
pop ebx
add esp, 0x24
ret 8