Function at 0x100229d0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100381dd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push esi
push edi
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
lea eax, [ebp - 0x60]
mov edi, ecx
push eax
mov dword [ebp - 0x10], edi
movups xmmword [ebp - 0x60], xmm0
movups xmmword [ebp - 0x50], xmm0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x60], 0
jne 0x10022aa5
push 0x14
call fcn.10035016
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x3c]
mov ecx, dword [edi]
xorps xmm0, xmm0
movups xmmword [ebp - 0x3c], xmm0
mov dword [esi], vtable.blackbone::Native.0
mov dword [esi + 4], ecx
push eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [ebp - 0x38]
mov dword [esi + 0x10], eax
lea eax, [edi + 8]
mov word [esi + 0xc], 0x101
mov dword [esi + 8], 0
mov byte [esi + 0xe], 1
mov dword [esi], vtable.blackbone::x86Native.0
mov ecx, dword [eax]
mov dword [ebp - 0x14], eax
mov dword [eax], esi
test ecx, ecx
je 0x10022b4d
push 0x14
push ecx
mov dword [ecx], vtable.blackbone::Native.0
call fcn.10035360
mov eax, dword [ebp - 0x14]
add esp, 8
jmp 0x10022b4d
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
add edi, 8
cmp dword [ebp - 0x14], 1
push 0x14
jne 0x10022afc
call fcn.10035016
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov ecx, dword [ebp - 0x10]
push 0
push dword [ecx]
mov ecx, esi
call fcn.10023c80
mov dword [esi], vtable.blackbone::NativeWow64.0
mov eax, dword [edi]
mov dword [edi], esi
test eax, eax
je 0x10022b48
push 0x14
mov dword [eax], vtable.blackbone::Native.0
push eax
jmp 0x10022b40
call fcn.10035016
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x10]
push 0
push dword [ecx]
mov ecx, eax
call fcn.10023c80
mov ecx, eax
lea eax, [ebp - 0x18]
cmp edi, eax
mov eax, edi
je 0x10022b33
mov edx, dword [edi]
mov dword [edi], ecx
test edx, edx
je 0x10022b4a
push 0x14
mov dword [edx], vtable.blackbone::Native.0
push edx
jmp 0x10022b40
test ecx, ecx
je 0x10022b4a
push 0x14
mov dword [ecx], vtable.blackbone::Native.0
push ecx
call fcn.10035360
add esp, 8
mov eax, edi
mov edi, dword [ebp - 0x10]
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
jne 0x10022b6b
mov byte [edi + 0xc], 1
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
call fcn.100093b0
push 0x13
push 0x1003e024
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], 0
mov esi, eax
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
call fcn.10001520
mov dword [ebp - 4], 0
call fcn.1001faf0
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.10009cd0
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 4]
je 0x10022bf8
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x14], eax
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10022c02
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push dword [edi]
call eax
mov dword [ebp - 0x14], eax
mov esi, eax
jmp 0x10022c04
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor esi, esi
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x10022c3a
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10022c30
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10022c30
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10035360
add esp, 8
test esi, esi
je 0x10022c46
mov al, byte [ebp - 0x10]
and al, 1
mov byte [edi + 0xc], al
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret