Function at 0x10069990
Capabilities:
Get system information on windows

Disassembly:
push 0x178
mov eax, 0x10051211
call fcn.10034165
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x154], eax
mov eax, 0x100c6920
push eax
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x160], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
inc ebx
mov dword [ebp - 0x15c], ebx
xor eax, eax
mov dword [ebp - 4], eax
or dword [ebp - 0x14c], 0xffffffff
mov dword [ebp - 0x158], eax
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x13c], eax
call fcn.10059a84
lea ecx, [ebp - 0x144]
call fcn.10059a84
xor eax, eax
lea ecx, [ebp - 0x140]
mov dword [ebp - 0x150], eax
mov byte [ebp - 0x135], al
mov byte [ebp - 0x136], al
call fcn.10059a84
lea ecx, [ebp - 0x136]
mov byte [ebp - 4], 4
call fcn.10093d3c
mov edi, eax
test edi, edi
jns 0x10069ad4
lea ecx, [ebp - 0x134]
call fcn.10059a84
mov byte [ebp - 4], 5
push 0x1000ce48
lea eax, [ebp - 0x134]
push eax
call fcn.1005a83c
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
push 0x1000ce94
push dword [ebp - 0x134]
push esi
push eax
push 0x10006d20
push ebx
call fcn.10036104
lea ecx, [ebp - 0x134]
add esp, 0x1c
mov byte [ebp - 4], 4
call fcn.10059adb
xor ebx, ebx
mov edx, edi
xor ecx, ecx
call fcn.10062697
cmp byte [ebp - 0x135], 0
je 0x10069ab5
call fcn.1005b545
test al, al
je 0x10069ab5
call fcn.1005c4a8
test edi, edi
jns 0x1006a4de
cmp dword [0x100c6694], 0
je 0x1006a4e4
call fcn.1005e410
jmp 0x1006a4e4
cmp byte [ebp - 0x136], 0
jne 0x10069afb
lea ecx, [ebp - 0x134]
mov edi, 0x800702e4
call fcn.10059a84
mov byte [ebp - 4], 6
push 0x1000cec4
jmp 0x10069a4c
mov eax, dword [0x100c6698]
test eax, eax
je 0x10069b6d
inc eax
lea ecx, [ebp - 0x134]
mov dword [0x100c6698], eax
call fcn.10059a84
mov byte [ebp - 4], 7
lea eax, [ebp - 0x134]
push dword [0x100c6698]
push 0x1000cefc
push eax
call fcn.1005a83c
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x1000ce94
push dword [ebp - 0x134]
push esi
push eax
push 0x10006d60
push 3
call fcn.10036104
add esp, 0x18
lea ecx, [ebp - 0x134]
call fcn.10059adb
jmp 0x1006a552
call fcn.1005b545
cmp al, 1
je 0x10069a93
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x184]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x184]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x184]
lea edx, [ebp - 0x140]
call fcn.10035b21
mov edi, eax
test edi, edi
jns 0x10069bdb
lea ecx, [ebp - 0x134]
call fcn.10059a84
mov byte [ebp - 4], 9
movzx eax, word [ebp - 0x184]
push eax
lea eax, [ebp - 0x134]
push 0x1000cf28
push eax
call fcn.1005a83c
add esp, 0xc
jmp 0x10069a5a
xor eax, eax
push 0x110
push eax
lea eax, [ebp - 0x124]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x128], 0x114
lea ecx, [ebp - 0x128]
call fcn.10091dde
test eax, eax
jne 0x10069c38
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0x80070000
test eax, eax
jle 0x10069c21
movzx eax, ax
or eax, esi
test eax, eax
jns 0x10069c62
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x10069c36
movzx edi, di
or edi, esi
test edi, edi
js 0x10069c67
lea edx, [ebp - 0x148]
call fcn.10095789
mov edi, eax
test edi, edi
jns 0x10069c80
lea ecx, [ebp - 0x134]
call fcn.10059a84
mov byte [ebp - 4], 0xb
push 0x1000cfd8
jmp 0x10069a4c
mov edi, 0x80004005
lea ecx, [ebp - 0x134]
call fcn.10059a84
mov byte [ebp - 4], 0xa
push 0x1000cf80
jmp 0x10069a4c
call fcn.1005d7bb
mov edi, eax
test edi, edi
jns 0x10069ce2
lea ecx, [ebp - 0x12c]
call fcn.10059a84
lea eax, [ebp - 0x12c]
mov byte [ebp - 4], 0xc
push 0x1000d038
push eax
call fcn.1005a83c
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
push 0x1000ce94
push dword [ebp - 0x12c]
push esi
push eax
push 0x10006d20
push ebx
call fcn.10036104
add esp, 0x1c
lea ecx, [ebp - 0x12c]
call fcn.10059adb
lea ecx, [ebp - 0x12c]
call fcn.10059a84
mov edi, 0x1000d078
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x12c]
push edi
push eax
call fcn.1005a83c
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x1000ce94
push dword [ebp - 0x12c]
push esi
push eax
push 0x10006d60
push 3
call fcn.10036104
add esp, 0x18
lea ecx, [ebp - 0x12c]
call fcn.10059adb
lea ecx, [ebp - 0x12c]
call fcn.10059a84
lea eax, [ebp - 0x12c]
mov byte [ebp - 4], 0xe
push 0x1000d0e8
push eax
call fcn.1005a83c
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x1000ce94
push dword [ebp - 0x12c]
push esi
push eax
push 0x10006d60
push 3
call fcn.10036104
add esp, 0x18
lea ecx, [ebp - 0x12c]
call fcn.10059adb
lea ecx, [ebp - 0x12c]
call fcn.10059a84
lea eax, [ebp - 0x12c]
mov byte [ebp - 4], 0xf
push edi
push eax
call fcn.1005a83c
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, 0x1000ce94
push edi
push dword [ebp - 0x12c]
push esi
push eax
push 0x10006d60
push 3
call fcn.10036104
add esp, 0x18
lea ecx, [ebp - 0x12c]
call fcn.10059adb
lea ecx, [ebp - 0x12c]
call fcn.10059a84
mov byte [ebp - 4], 0x10
push dword [ebp - 0x170]
push dword [ebp - 0x140]
push dword [ebp - 0x11c]
push dword [ebp - 0x120]
push dword [ebp - 0x124]
push 0x1000d158
lea eax, [ebp - 0x12c]
push eax
call fcn.1005a83c
add esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
push dword [ebp - 0x12c]
push esi
push eax
push 0x10006d60
push 3
call fcn.10036104
add esp, 0x18
lea ecx, [ebp - 0x12c]
call fcn.10059adb
lea ecx, [ebp - 0x12c]
call fcn.10059a84
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x12c]
push dword [ebp - 0x148]
push 0x1000d234
push eax
call fcn.1005a83c
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
push dword [ebp - 0x12c]
push esi
push eax
push 0x10006d60
push 3
call fcn.10036104
add esp, 0x18
lea ecx, [ebp - 0x12c]
call fcn.10059adb
lea ecx, [ebp - 0x12c]
call fcn.10059a84
mov byte [ebp - 4], 0x12
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x12c]
push 0x1000d270
push eax
call fcn.1005a83c
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
push dword [ebp - 0x12c]
push esi
push eax
push 0x10006d60
push 3
call fcn.10036104
add esp, 0x18
lea ecx, [ebp - 0x12c]
call fcn.10059adb
lea ecx, [ebp - 0x12c]
call fcn.10059a84
lea eax, [ebp - 0x12c]
mov byte [ebp - 4], 0x13
push 0x10007fcc
push eax
call fcn.1005a83c
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
push dword [ebp - 0x12c]
push esi
push eax
push 0x10006d60
push 4
call fcn.10036104
add esp, 0x18
lea ecx, [ebp - 0x12c]
call fcn.10059adb
lea ecx, [ebp - 0x12c]
call fcn.10059a84
push dword [ebp - 0x154]
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0x12c]
mov edi, dword [ebp - 0x134]
push edi
push dword [ebp + 8]
push 0x1000d2d0
push eax
call fcn.1005a83c
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x1000ce94
push dword [ebp - 0x12c]
push esi
push eax
push 0x10006d60
push 3
call fcn.10036104
add esp, 0x18
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x12c]
call fcn.10059adb
test edi, edi
je 0x1006a0ca
mov ecx, edi
call fcn.10093d7c
test al, al
jne 0x1006a043
lea ecx, [ebp - 0x12c]
mov edi, 0x80070057
call fcn.10059a84
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x134]
push ecx
push 0x1000d35c
lea eax, [ebp - 0x12c]
push eax
call fcn.1005a83c
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x80070057
push 0x1000ce94
push dword [ebp - 0x12c]
push esi
push eax
push 0x10006d20
push ebx
call fcn.10036104
lea ecx, [ebp - 0x12c]
jmp 0x10069a87
lea eax, [ebp - 0x150]
mov edx, 0x8000
push eax
mov ecx, edi
call fcn.1005e461
mov edi, eax
test edi, edi
jns 0x1006a08f
lea ecx, [ebp - 0x12c]
call fcn.10059a84
lea eax, [ebp - 0x12c]
mov byte [ebp - 4], 0x16
push 0x10006f04
push eax
call fcn.1005a83c
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
jmp 0x1006a020
cmp dword [ebp - 0x150], 0
ja 0x1006a0c4
lea ecx, [ebp - 0x12c]
mov edi, 0x80070057
call fcn.10059a84
lea eax, [ebp - 0x12c]
mov byte [ebp - 4], 0x17
push 0x1000d390
push eax
call fcn.1005a83c
pop ecx
pop ecx
jmp 0x1006a00d
mov edi, dword [ebp - 0x134]
mov esi, dword [ebp - 0x154]
test esi, esi
je 0x1006a0fe
mov ecx, esi
call fcn.10093d7c
test al, al
jne 0x1006a0fe
lea ecx, [ebp - 0x12c]
mov edi, 0x80070057
call fcn.10059a84
push esi
mov byte [ebp - 4], 0x18
push 0x1000d3b8
jmp 0x10069ffe
lea edx, [ebp - 0x13c]
mov ecx, edi
call fcn.100958fb
mov edi, eax
test edi, edi
jns 0x1006a14a
lea ecx, [ebp - 0x12c]
call fcn.10059a84
mov byte [ebp - 4], 0x19
mov eax, 0x10006dd0
mov ecx, dword [ebp - 0x134]
test ecx, ecx
cmovne eax, ecx
push eax
lea eax, [ebp - 0x12c]
push 0x1000d3f8
push eax
call fcn.1005a83c
add esp, 0xc
jmp 0x1006a07e
lea edx, [ebp - 0x130]
mov ecx, esi
call fcn.100958fb
mov edi, eax
test edi, edi
jns 0x1006a1cf
lea ecx, [ebp - 0x12c]
call fcn.10059a84
test esi, esi
mov byte [ebp - 4], 0x1a
mov eax, 0x10006dd0
cmovne eax, esi
push eax
lea eax, [ebp - 0x12c]
push 0x1000d480
push eax
call fcn.1005a83c
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
push 0x1000ce94
push dword [ebp - 0x12c]
push esi
push eax
push 0x10006d20
push ebx
call fcn.10036104
add esp, 0x1c
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x12c]
call fcn.10059adb
mov ebx, dword [ebp - 0x130]
jmp 0x10069a95
mov eax, dword [ebp - 0x130]
mov esi, eax
mov dword [ebp - 0x134], eax
test esi, esi
je 0x1006a30a
lea edx, [ebp - 0x144]
mov ecx, eax
call fcn.1009363a
mov edi, eax
test edi, edi
jns 0x1006a262
lea ecx, [ebp - 0x130]
call fcn.10059a84
mov eax, esi
mov byte [ebp - 4], 0x1b
push eax
push 0x1000d510
lea eax, [ebp - 0x130]
push eax
call fcn.1005a83c
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
push 0x1000ce94
push dword [ebp - 0x130]
push esi
push eax
push 0x10006d20
push ebx
call fcn.10036104
add esp, 0x1c
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 4
call fcn.10059adb
mov ebx, dword [ebp - 0x134]
jmp 0x10069a95
mov esi, dword [ebp - 0x144]
test esi, esi
je 0x1006a30a
mov ecx, esi
call fcn.100914f7
test eax, eax
jne 0x1006a2bc
lea ecx, [ebp - 0x130]
mov edi, 0x80070057
call fcn.10059a84
push esi
mov byte [ebp - 4], 0x1c
push 0x1000d580
lea eax, [ebp - 0x130]
push eax
call fcn.1005a83c
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x80070057
jmp 0x1006a22d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x1006a2e3
lea ecx, [ebp - 0x130]
mov edi, 0x80070057
call fcn.10059a84
push esi
mov byte [ebp - 4], 0x1d
push 0x1000d5d0
jmp 0x1006a295
mov ecx, esi
call fcn.10093926
mov edi, eax
test edi, edi
jns 0x1006a30a
lea ecx, [ebp - 0x130]
call fcn.10059a84
push esi
mov byte [ebp - 4], 0x1e
push 0x1000d620
jmp 0x1006a20f
mov edx, dword [ebp - 0x13c]
mov ecx, dword [ebp + 8]
push esi
call fcn.1005dda0
lea ecx, [ebp - 0x130]
mov edi, eax
call fcn.10059a84
test edi, edi
jns 0x1006a385
mov byte [ebp - 4], 0x1f
push 0x1000d678
lea eax, [ebp - 0x130]
push eax
call fcn.1005a83c
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
push 0x1000ce94
push dword [ebp - 0x130]
push esi
push eax
push 0x10006d20
push ebx
call fcn.10036104
add esp, 0x1c
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x130]
call fcn.10059adb
mov byte [ebp - 0x135], bl
jmp 0x1006a257
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 0x20
push 0x1000d6c0
push eax
call fcn.1005a83c
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x1000ce94
push dword [ebp - 0x130]
push esi
push eax
push 0x10006d60
push 3
call fcn.10036104
add esp, 0x18
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x130]
call fcn.10059adb
call fcn.1005b11e
lea ecx, [ebp - 0x130]
mov edi, eax
call fcn.10059a84
test edi, edi
jns 0x1006a3f9
mov byte [ebp - 4], 0x21
push 0x1000d6f8
jmp 0x1006a333
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 0x22
push 0x1000d73c
push eax
call fcn.1005a83c
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x1000ce94
push dword [ebp - 0x130]
push esi
push eax
push 0x10006d60
push 3
call fcn.10036104
add esp, 0x18
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x130]
call fcn.10059adb
push ebx
lea ecx, [ebp - 0x14c]
call fcn.10093c91
lea eax, [ebp - 0x158]
xor edx, edx
push eax
lea ecx, [ebp - 0x14c]
call fcn.10059fd4
mov edi, eax
lea ecx, [ebp - 0x130]
test edi, edi
jns 0x1006a488
call fcn.10059a84
mov byte [ebp - 4], 0x23
push 0x1000d770
jmp 0x1006a333
mov eax, dword [ebp - 0x158]
mov dword [0x100c669c], eax
call fcn.10059a84
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 0x24
push 0x1000d7c0
push eax
call fcn.1005a83c
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x1000ce94
push dword [ebp - 0x130]
push esi
push eax
push 0x10006d60
push 3
call fcn.10036104
add esp, 0x18
jmp 0x1006a248
inc dword [0x100c6698]
push ebx
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
push dword [ebp - 0x13c]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
lea ecx, [ebp - 0x13c]
call fcn.10059a84
lea eax, [ebp - 0x13c]
mov byte [ebp - 4], 0x25
push 0x100085f0
push eax
call fcn.1005a83c
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x1000ce94
push dword [ebp - 0x13c]
push esi
push eax
push 0x10006d60
push 4
call fcn.10036104
add esp, 0x18
lea ecx, [ebp - 0x13c]
call fcn.10059adb
mov ebx, edi
lea ecx, [ebp - 0x140]
call fcn.10059adb
lea ecx, [ebp - 0x144]
call fcn.10059adb
lea ecx, [ebp - 0x148]
call fcn.10059adb
lea ecx, [ebp - 0x14c]
call fcn.100939c4
lea ecx, [ebp - 0x160]
call fcn.10059ad0
mov eax, ebx
call fcn.10034102
ret 0xc