Function at 0x1006b3c
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1e0
mov eax, dword [0x1011040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x1b8], eax
mov eax, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 0x1b4], esi
mov dword [ebp - 0x1b0], eax
test esi, esi
je 0x1006db3
push edi
push 0x3f
push esi
call sub.cmutil.dll_CmStrchrA
mov edi, 0x100
test eax, eax
jne 0x1006b9f
push edi
lea eax, [ebp - 0x1b0]
push eax
lea eax, [ebp - 0x1b4]
push eax
push 0x1002554
jmp 0x1006bc1
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + esi - 1], 0x26
je 0x1006be2
push edi
lea eax, [ebp - 0x1b0]
push eax
lea eax, [ebp - 0x1b4]
push eax
push 0x1002550
push dword [ebp + 8]
push esi
call fcn.010050e2
test eax, eax
jge 0x1006be2
push eax
push 0x1002524
push dword [0x101135c]
call fcn.0100a43e
add esp, 0xc
lea eax, [ebp - 0x1e0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, 0x94
push esi
lea eax, [ebp - 0x1ac]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1ac]
push eax
mov dword [ebp - 0x1ac], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x19c], 1
movzx eax, word [ebp - 0x1a0]
je 0x1006c2f
mov eax, dword [ebp - 0x1a0]
push 0x1002514
push eax
push dword [ebp - 0x1a4]
push dword [ebp - 0x1a8]
push 0x800
call dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
push eax
push dword [ebp - 0x19c]
movzx eax, word [ebp - 0x1e0]
push eax
push 0x10024e0
push edi
lea eax, [ebp - 0x1b0]
push eax
lea eax, [ebp - 0x1b4]
push eax
push dword [ebp - 0x1b0]
push dword [ebp - 0x1b4]
call fcn.010053e1
add esp, 0x34
test eax, eax
jge 0x1006c9b
push eax
push 0x10024b0
push dword [0x101135c]
call fcn.0100a43e
add esp, 0xc
test ebx, ebx
je 0x1006ce5
cmp byte [ebx], 0
je 0x1006ce5
push ebx
push 0x10024a4
push edi
lea eax, [ebp - 0x1b0]
push eax
lea eax, [ebp - 0x1b4]
push eax
push dword [ebp - 0x1b0]
push dword [ebp - 0x1b4]
call fcn.010053e1
add esp, 0x1c
test eax, eax
jge 0x1006ce5
push eax
push 0x10024b0
push dword [0x101135c]
call fcn.0100a43e
add esp, 0xc
mov eax, dword [ebp - 0x1b8]
test eax, eax
je 0x1006db2
cmp byte [eax], 0
je 0x1006db2
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1006cff
sub eax, edx
xor ebx, ebx
mov dword [ebp - 0x1bc], eax
mov byte [ebp - 0x118], cl
mov byte [ebp - 0x13], cl
test eax, eax
jle 0x1006d6b
mov esi, 0x104
mov eax, dword [ebp - 0x1b8]
mov al, byte [eax + ebx]
cmp al, 0x20
jne 0x1006d36
push 0x10024a0
jmp 0x1006d3d
mov byte [ebp - 0x14], al
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x118]
push eax
call fcn.01005089
test eax, eax
jge 0x1006d62
push eax
push 0x1002478
push dword [0x101135c]
call fcn.0100a43e
add esp, 0xc
inc ebx
cmp ebx, dword [ebp - 0x1bc]
jl 0x1006d22
lea eax, [ebp - 0x118]
push eax
push 0x1002470
push edi
lea eax, [ebp - 0x1b0]
push eax
lea eax, [ebp - 0x1b4]
push eax
push dword [ebp - 0x1b0]
push dword [ebp - 0x1b4]
call fcn.010053e1
add esp, 0x1c
test eax, eax
jge 0x1006db2
push eax
push 0x10024b0
push dword [0x101135c]
call fcn.0100a43e
add esp, 0xc
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.010096ed
leave
ret 8