Function at 0x1001ba7e
Capabilities:
Get system information on windows

Disassembly:
push 0x40
mov eax, 0x1019ed7e
call fcn.1017513a
mov esi, ecx
mov dword [ebp - 0x20], esi
push ecx
lea ecx, [ebp - 0x10]
xor ebx, ebx
call fcn.10021350
pop ecx
mov dword [ebp - 4], ebx
mov ecx, esi
call fcn.1001d831
lea ecx, [esi + 0x24]
call fcn.10019ee1
test eax, eax
js 0x1001bbb8
lea ecx, [esi + 0x40]
call fcn.10019ee1
test eax, eax
js 0x1001bbb8
lea ecx, [esi + 0xb0]
call fcn.10019ee1
test eax, eax
js 0x1001bbb8
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x38]
mov dword [esi + 0x2e0], eax
lea eax, [esi + 0x2d8]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0x14
mov ebx, dword [eax]
lea eax, [ebp - 0x1c]
push eax
mov edi, dword [ebx + 4]
push edi
push ebx
call fcn.1002225e
push ecx
mov ecx, dword [ebp - 0x18]
mov esi, eax
call fcn.10021eb4
sub dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x18]
mov dword [ebx + 4], esi
mov dword [edi], esi
jne 0x1001bafe
mov ebx, dword [ebp - 0x20]
xor eax, eax
mov edx, 0x1321aef
mov dword [ebx + 0x70], eax
lea ecx, [ebx + 0xc]
mov dword [ebx + 0x20], 0x3e8
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x78], eax
mov eax, edx
mov dword [ebx + 0x84], 0x2bf20
xchg dword [ecx], eax
lea eax, [ebx + 0x10]
xchg dword [eax], edx
lea ecx, [ebx + 0x14]
xor eax, eax
xchg dword [ecx], eax
push bind
xor eax, eax
mov edx, 0x104
push 0x10204e98
push ecx
lea ecx, [ebx + 0xcc]
mov dword [ebx + 8], eax
mov dword [ebx + 0x8c], eax
mov dword [ebx + 0x2d4], eax
mov dword [ebx + 0x90], eax
call fcn.10007c2b
lea ecx, [ebx + 0x2e4]
call fcn.10021378
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, eax
test ecx, ecx
jne 0x1001bbd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xe0ff0000
mov ebx, eax
or dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x10], 0
jne 0x1001bbc9
call fcn.100218df
mov eax, ebx
call fcn.10175103
ret
push dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
push ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
call fcn.10006db0
mov byte [ebp - 4], 1
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebp - 0x24]
mov dword [ebx + 0x18], ecx
mov ecx, dword [ebx + 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x20], ecx
mov dword [ebx + 0x1c], eax
mov byte [ebp - 4], 0
test ecx, ecx
je 0x1001bc11
call fcn.10001860
push dword [ebx + 0x2f0]
lea esi, [ebx + 0x88]
push esi
push ebx
push 0x1001ca07
call fcn.1001b831
mov dword [ebx + 0x6c], eax
test eax, eax
je 0x1001bc53
lea edx, [ebp - 0x18]
call fcn.100134ab
test eax, eax
js 0x1001bc9c
mov eax, dword [ebp - 0x18]
push dword [esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x18]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
jmp 0x1001bc9c
and dword [ebx + 0x6c], 0
lea ecx, [ebp - 0x14]
mov dword [ebx + 0x2f4], 1
call fcn.100213f3
mov byte [ebp - 4], 2
lea edx, [ebx + 0x2f8]
cmp edx, eax
je 0x1001bc8a
mov ecx, dword [eax]
and dword [eax], 0
mov eax, dword [edx]
mov dword [edx], ecx
test eax, eax
je 0x1001bc8a
push eax
call fcn.10020090
mov byte [ebp - 4], 0
cmp dword [ebp - 0x14], 0
je 0x1001bc9c
push dword [ebp - 0x14]
call fcn.10020090
mov ecx, dword [ebx]
lea eax, [ebx + 0x7c]
push 0x1388
push eax
push ebx
call dword [ecx + 0x14]
xor ebx, ebx
jmp 0x1001bbba