Function at 0x10009810
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10021fc8
push 0x10021aa0
mov eax, dword fs:[0]
push eax
sub esp, 0x310
mov eax, dword [0x10023f34]
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 esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x10009a45
sub eax, 1
jne 0x10009aaf
mov dword [ebp - 4], eax
push 0x100268a0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x10026760
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x10025d30], esi
mov ecx, esi
call fcn.10009510
mov dword [0x10025d38], eax
test eax, eax
je 0x10009955
push 0x10026720
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [0x10025d24], 0
jne 0x100098e8
xor esi, esi
xor edi, edi
mov dword [ebp - 0x320], esi
cmp edi, 0x100
jge 0x100098de
push esi
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
setne al
mov byte [esi + 0x100269e0], al
movzx eax, al
or dword [0x10025d28], eax
lea esi, [edi + 1]
mov edi, esi
jmp 0x100098ae
mov dword [0x10025d24], 1
push 0
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x10025d40], eax
test eax, eax
jne 0x10009963
push 0x200
lea eax, [ebp - 0x31c]
push eax
push 0x232f
push dword [0x10025d38]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x100
lea eax, [ebp - 0x11c]
push eax
push 0x2328
push dword [0x10025d38]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x240010
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x31c]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x10009ab4
push 0x10025e98
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x10025e5c], 0
mov dword [0x10025e58], 0
push 0x10025e60
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x105
push 0x100268c0
push dword [0x10025d30]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100099c2
push 0x105
push 0x100268c0
push 0x2333
push dword [0x10025d38]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x5c
push 0x100268c0
call dword [sym.imp.msvcrt.dll_strrchr]
add esp, 8
mov dword [0x10026700], eax
test eax, eax
jne 0x100099e7
mov dword [0x10026700], 0x100268c0
jmp 0x100099ed
inc eax
mov dword [0x10026700], eax
push 0x105
push 0x10026780
push 0x2334
push dword [0x10025d38]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x105
push 0x100263e0
push 0x233b
push dword [0x10025d38]
call dword [sym.imp.USER32.dll_LoadStringA]
push dword [0x10025d30]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
jmp 0x10009aa8
mov dword [ebp - 4], 1
call fcn.1000a210
push 0x10025e98
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push dword [0x10025d40]
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
mov eax, dword [0x10025d2c]
test eax, eax
je 0x10009a78
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1000fe00
push 0x10026760
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push 0x100268a0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [0x10025d40], 0
jmp 0x10009aa8
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
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.10021ad0
mov esp, ebp
pop ebp
ret 0xc