Function at 0x10009630
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10021e08
push 0x10021880
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 0x10009862
sub eax, 1
jne 0x100098cc
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.10009330
mov dword [0x10025d38], eax
test eax, eax
je 0x10009772
push 0x10026720
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [0x10025d24], 0
jne 0x10009705
xor esi, esi
xor eax, eax
mov dword [ebp - 0x320], esi
cmp eax, 0x100
jge 0x100096fb
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
inc esi
mov eax, esi
jmp 0x100096ce
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 0x10009780
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 0x100098d1
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 0x100097df
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 0x10009804
mov dword [0x10026700], 0x100268c0
jmp 0x1000980a
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 0x100098c5
mov dword [ebp - 4], 1
call fcn.1000a040
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 0x10009895
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1000fd40
push 0x10026760
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push 0x100268a0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [0x10025d40], 0
jmp 0x100098c5
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.100218b0
mov esp, ebp
pop ebp
ret 0xc