Function at 0x10007680
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10012010
push 0x10011be0
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x10013044]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x24], 0
xor edi, edi
mov dword [ebp - 0x20], edi
mov eax, dword [ebp + 0xc]
sub eax, edi
je 0x10007882
sub eax, 1
je 0x100076eb
sub eax, 1
jne 0x10007948
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
jmp 0x10007948
mov edi, 1
cmp dword [0x1001341c], 0
jne 0x10007870
push 0x100133d4
push edi
call dword [sym.imp.ole32.dll_CoGetMalloc]
cmp dword [0x100133d4], 0
je 0x1000787b
test eax, eax
js 0x1000787b
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov dword [0x10013418], eax
push 0x100133dc
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [ebp + 8]
mov dword [0x10013414], eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0x34], 2
sbb eax, eax
and eax, 0xfffff061
add eax, 0xfa0
mov dword [0x10013050], eax
push 0x100133fc
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x100133b0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x10013398
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x10
call fcn.1001162b
add esp, 4
mov esi, eax
test esi, esi
je 0x100077a9
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
jmp 0x100077ab
xor esi, esi
mov dword [0x100133c8], esi
test esi, esi
je 0x1000787b
mov dword [esi], 4
push 0x28
call dword [sym.imp.msvcrt.dll_malloc]
add esp, 4
mov dword [esi + 0xc], eax
test eax, eax
je 0x1000787b
mov dword [esi + 8], 0xa
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x24]
mov ecx, esi
call fcn.100047b0
test eax, eax
jne 0x1000787b
push 0x10
call fcn.1001162b
add esp, 4
mov esi, eax
test esi, esi
je 0x10007819
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
jmp 0x1000781b
xor esi, esi
mov dword [0x100133d8], esi
test esi, esi
je 0x1000787b
mov dword [esi], 4
push 0x28
call dword [sym.imp.msvcrt.dll_malloc]
add esp, 4
mov dword [esi + 0xc], eax
test eax, eax
je 0x1000787b
mov dword [esi + 8], 0xa
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x24]
mov ecx, esi
call fcn.1000b1a2
test eax, eax
jne 0x1000787b
cmp dword [0x100133f4], eax
jne 0x10007870
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x68]
mov dword [0x100133f4], eax
inc dword [0x1001341c]
jmp 0x10007948
xor edi, edi
jmp 0x10007948
mov dword [ebp - 4], edi
mov dword [0x100133cc], 1
cmp dword [0x1001341c], 1
ja 0x1000791d
cmp dword [0x100133c8], 0
jne 0x100078ae
cmp dword [0x100133d8], 0
je 0x100078b3
call fcn.10007970
mov ecx, dword [0x100133d4]
test ecx, ecx
je 0x100078d7
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10014108]
call esi
mov dword [0x100133d4], 0
push 0x100133fc
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push 0x100133b0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push 0x100133dc
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push 0x10013398
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [0x10013420]
test ecx, ecx
je 0x1000791d
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10014108]
call esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x10007939
cmp dword [0x1001341c], 0
jbe 0x10007948
dec dword [0x1001341c]
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10011bb0
mov esp, ebp
pop ebp
ret 0xc