Function at 0x1000c840
Capabilities:
Get system information on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10070410
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x58
push esi
push edi
mov eax, dword [0x100f7080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x18], eax
mov ecx, dword [eax + 0xc]
lea esi, [eax + 8]
mov eax, dword [esi]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
cmp eax, ecx
je 0x1000c9ea
mov esi, dword [ebx + 0x10]
nop dword [eax]
mov ecx, dword [eax]
cmp dword [ecx + 4], esi
jb 0x1000c9d5
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x1000c9d5
nop dword [eax]
mov eax, dword [ecx + 8]
mov edi, dword [ecx + 4]
sub eax, edi
cmp eax, esi
jb 0x1000c9c5
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], edi
mov eax, dword [edx]
cmp eax, dword [edx + 4]
je 0x1000c90c
mov esi, dword [eax]
mov edx, edi
sub edx, esi
mov ecx, esi
sub ecx, edi
cmp edi, esi
cmova ecx, edx
cmp ecx, dword [ebx + 0x14]
ja 0x1000c9bf
mov ecx, dword [ebx + 0xc]
add eax, 4
cmp eax, dword [ecx + 4]
jne 0x1000c8e3
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebx + 0x10]
add dword [ecx + 4], esi
lea ecx, [ebp - 0x30]
mov eax, dword [ebp - 0x18]
push eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
call fcn.1000ef50
test al, al
je 0x1000cbbd
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x34], esi
mov esi, dword [ebx + 8]
mov ecx, esi
push eax
mov dword [ebp - 0x38], edi
call fcn.1000c140
mov byte [esi + 0x10], 1
mov dword [ebp - 4], 0
or esi, 0xffffffff
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x1000ca42
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x1000ca42
mov edx, dword [ebp - 0x34]
test edx, edx
je 0x1000ca42
push edx
push eax
call fcn.1000c6b0
mov ecx, dword [ebp - 0x3c]
xor edi, edi
test ecx, ecx
je 0x1000ca45
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x1000ca45
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x3c]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x1000ca45
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1000ca45
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebx + 0x10]
mov ecx, dword [ecx]
mov dword [ebp - 0x14], ecx
test ecx, ecx
jne 0x1000c8c0
mov eax, dword [ebp - 0x1c]
add eax, 4
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp - 0x20]
jne 0x1000c8a0
mov esi, dword [ebp - 0x18]
add esi, 8
xorps xmm0, xmm0
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x64]
push eax
movups xmmword [ebp - 0x64], xmm0
movups xmmword [ebp - 0x54], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebx + 0x10]
mov eax, dword [ebp - 0x48]
dec ecx
push dword [ebx + 0x14]
mov edx, dword [ebx + 0xc]
add ecx, eax
dec eax
not eax
and ecx, eax
mov dword [ebp - 0x1c], ecx
push ecx
lea ecx, [ebp - 0x30]
call fcn.1000cbd0
add esp, 8
cmp byte [ebp - 0x2c], 0
jne 0x1000ca78
mov ecx, dword [ebx + 8]
mov al, byte [ebp - 0x30]
mov byte [ecx], al
mov eax, ecx
mov byte [ecx + 0x10], 0
jmp 0x1000cba7
mov edi, dword [ebp - 0x3c]
test edi, edi
je 0x1000cba4
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x1000cba4
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x1000cba4
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
jmp 0x1000cba4
push 0xc
call fcn.1004f2dc
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x1000caae
mov dword [ecx], eax
mov edi, dword [esi + 4]
lea eax, [edi + 4]
mov dword [esi + 4], eax
jmp 0x1000cabc
lea eax, [ebp - 0x20]
push eax
push ecx
mov ecx, esi
call fcn.1000f130
mov edi, eax
mov eax, dword [edi]
mov ecx, dword [ebp - 0x30]
push 0xc
mov dword [eax], ecx
mov eax, dword [edi]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 4], ecx
call fcn.1004f2dc
add esp, 4
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov ecx, dword [edi]
mov esi, dword [ecx + 8]
mov dword [ecx + 8], eax
test esi, esi
je 0x1000cb0c
mov eax, dword [esi]
test eax, eax
je 0x1000cb01
push eax
call fcn.1000edd0
push 0xc
push esi
call fcn.1004f311
add esp, 8
mov eax, dword [edi]
mov esi, dword [ebp - 0x30]
mov ecx, dword [ebx + 0x10]
push dword [ebp - 0x18]
mov eax, dword [eax + 8]
add ecx, esi
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [eax + 4], ecx
mov eax, dword [edi]
mov ecx, dword [ebp - 0x1c]
add ecx, esi
mov eax, dword [eax + 8]
mov dword [eax + 8], ecx
lea ecx, [ebp - 0x30]
call fcn.1000ef50
test al, al
je 0x1000cbbd
mov eax, dword [ebp - 0x30]
mov edi, dword [ebx + 8]
mov ecx, edi
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x38], esi
call fcn.1000c140
mov byte [edi + 0x10], 1
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 1
call fcn.1000c2b0
mov edi, dword [ebp - 0x3c]
test edi, edi
je 0x1000cba4
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x1000cba4
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x1000cba4
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov eax, dword [ebx + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
call fcn.1000c050
int3