Function at 0x6c9d02e0
Capabilities:
Get system information on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x3c
mov ebx, dword [ecx]
test ebx, ebx
je 0x6c9d04cd
mov edi, dword [0x6cb1c754]
lea eax, [ebx - 8]
mov dword [ebp - 0x38], eax
test edi, edi
je 0x6c9d04e0
test byte [0x6cb1c734], 2
jne 0x6c9d058e
mov edi, dword [0x6cb1c590]
cmp edi, dword [ebp - 0x38]
ja 0x6c9d04cd
mov ecx, dword [ebx - 4]
test cl, 2
je 0x6c9d04c0
mov eax, ecx
mov edx, dword [ebp - 0x38]
and eax, 0xfffffffc
add edx, eax
and ecx, 1
jne 0x6c9d03c0
mov esi, dword [ebx - 8]
test esi, 1
jne 0x6c9d08b0
sub dword [ebp - 0x38], esi
mov ebx, dword [ebp - 0x38]
add eax, esi
cmp edi, ebx
ja 0x6c9d04c0
cmp dword [0x6cb1c594], ebx
je 0x6c9d0888
mov ecx, esi
mov ebx, dword [ebx + 0xc]
shr ecx, 3
cmp esi, 0xff
mov esi, dword [ebp - 0x38]
ja 0x6c9d0720
mov esi, dword [esi + 8]
cmp esi, ebx
je 0x6c9d09e4
lea ecx, [ecx*8 + 0x6cb1c5a4]
cmp ecx, esi
jne 0x6c9d0bc8
cmp edi, ebx
ja 0x6c9d03c0
lea esi, [esi]
mov dword [esi + 0xc], ebx
mov dword [ebx + 8], esi
lea esi, [esi]
lea esi, [esi]
movss xmm0, dword [ebp - 0x38]
unpcklps xmm0, xmm0
cmp dword [ebp - 0x38], edx
jae 0x6c9d04c0
mov ecx, dword [edx + 4]
test cl, 1
je 0x6c9d04c0
test cl, 2
jne 0x6c9d0450
cmp dword [0x6cb1c598], edx
je 0x6c9d0950
cmp dword [0x6cb1c594], edx
je 0x6c9d0a40
and ecx, 0xfffffffc
mov ebx, dword [edx + 0xc]
mov esi, ecx
add eax, ecx
shr esi, 3
cmp ecx, 0xff
ja 0x6c9d0668
mov edx, dword [edx + 8]
cmp edx, ebx
je 0x6c9d09d0
lea ecx, [esi*8 + 0x6cb1c5a4]
mov esi, dword [0x6cb1c590]
cmp ecx, edx
jne 0x6c9d0bb0
cmp ebx, esi
jb 0x6c9d06f8
lea esi, [esi]
nop
mov dword [edx + 0xc], ebx
mov dword [ebx + 8], edx
jmp 0x6c9d06f8
and ecx, 0xfffffffe
mov edi, dword [ebp - 0x38]
mov dword [edx + 4], ecx
mov ecx, eax
or ecx, 1
mov dword [edi + 4], ecx
mov dword [edx], eax
mov ecx, eax
shr ecx, 3
cmp eax, 0xff
ja 0x6c9d05f0
mov eax, 1
mov ebx, dword [0x6cb1c580]
lea edx, [ecx*8 + 0x6cb1c5a4]
shl eax, cl
test ebx, eax
jne 0x6c9d07d0
or ebx, eax
mov eax, edx
mov dword [0x6cb1c580], ebx
mov esi, dword [ebp - 0x38]
mov dword [ebp - 0x38], eax
movss xmm0, dword [ebp - 0x38]
mov dword [ebp - 0x38], edx
movss xmm3, dword [ebp - 0x38]
mov dword [edx + 8], esi
mov dword [eax + 0xc], esi
unpcklps xmm0, xmm3
movlps qword [esi + 8], xmm0
lea esi, [esi]
test byte [0x6cb1c734], 2
jne 0x6c9d05d8
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, 0x40000
mov edx, 0x200000
xor edi, edi
mov esi, 1
mov dword [0x6cb1c75c], eax
mov dword [0x6cb1c760], edx
mov dword [0x6cb1c764], 7
jmp 0x6c9d0520
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
mov eax, edi
lock cmpxchg dword [0x6cb1c768], esi
test eax, eax
jne 0x6c9d0510
mov esi, dword [0x6cb1c750]
test esi, esi
jne 0x6c9d0556
mov eax, dword [0x6cb1c764]
mov dword [0x6cb1c750], 0x58585858
mov dword [0x6cb1c738], 0
mov dword [0x6cb1c734], eax
xor eax, eax
xchg dword [0x6cb1c768], eax
lea esi, [ebp - 0x34]
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movss xmm0, dword [ebp - 0x30]
movss xmm2, dword [ebp - 0x18]
sub esp, 4
unpcklps xmm0, xmm2
movlps qword [0x6cb1c754], xmm0
test byte [0x6cb1c734], 2
je 0x6c9d031f
xor edi, edi
mov esi, 1
jmp 0x6c9d05b0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
mov eax, edi
lock cmpxchg dword [0x6cb1c738], esi
test eax, eax
jne 0x6c9d05a0
mov edi, dword [0x6cb1c590]
cmp edi, dword [ebp - 0x38]
jbe 0x6c9d032e
jmp 0x6c9d04c0
xor eax, eax
xchg dword [0x6cb1c738], eax
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov edx, eax
shr edx, 8
cmp eax, 0xffffff
ja 0x6c9d0870
bsr ebx, edx
mov edx, eax
lea ecx, [ebx + 7]
mov esi, 1
shr edx, cl
and edx, 1
lea ecx, [edx + ebx*2]
lea ebx, [ecx*4 + 0x12c]
shl esi, cl
mov edi, dword [ebp - 0x38]
mov edx, dword [0x6cb1c584]
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
test edx, esi
jne 0x6c9d07e8
or edx, esi
add ebx, 0x6cb1c580
mov dword [ecx*4 + 0x6cb1c6ac], edi
mov dword [0x6cb1c584], edx
mov dword [edi + 0x18], ebx
movlps qword [edi + 8], xmm0
jmp 0x6c9d04c0
mov edi, dword [edx + 0x18]
mov dword [ebp - 0x3c], edi
cmp edx, ebx
je 0x6c9d0990
mov ecx, dword [edx + 8]
cmp dword [0x6cb1c590], ecx
ja 0x6c9d0687
mov dword [ecx + 0xc], ebx
mov dword [ebx + 8], ecx
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x6c9d06f8
mov ecx, dword [edx + 0x1c]
lea esi, [ecx + 0x48]
cmp dword [ecx*4 + 0x6cb1c6ac], edx
je 0x6c9d0a97
mov edi, dword [ebp - 0x3c]
cmp dword [0x6cb1c590], edi
ja 0x6c9d06b8
cmp dword [edi + 0x10], edx
je 0x6c9d0afb
mov dword [edi + 0x14], ebx
test ebx, ebx
je 0x6c9d06f8
mov ecx, dword [0x6cb1c590]
cmp ecx, ebx
ja 0x6c9d06f8
mov esi, dword [ebp - 0x3c]
mov dword [ebx + 0x18], esi
mov esi, dword [edx + 0x10]
cmp ecx, esi
ja 0x6c9d06dd
test esi, esi
je 0x6c9d06dd
mov dword [ebx + 0x10], esi
mov dword [esi + 0x18], ebx
mov edx, dword [edx + 0x14]
test edx, edx
je 0x6c9d06f8
cmp dword [0x6cb1c590], edx
ja 0x6c9d06f8
mov dword [ebx + 0x14], edx
mov dword [edx + 0x18], ebx
lea esi, [esi]
mov edi, dword [ebp - 0x38]
mov edx, eax
or edx, 1
mov dword [edi + 4], edx
mov dword [edi + eax], eax
cmp dword [0x6cb1c594], edi
jne 0x6c9d0463
mov dword [0x6cb1c588], eax
jmp 0x6c9d04c0
mov ecx, dword [esi + 0x18]
mov dword [ebp - 0x40], ecx
cmp esi, ebx
je 0x6c9d09f6
mov ecx, dword [esi + 8]
cmp edi, ecx
ja 0x6c9d073b
mov dword [ecx + 0xc], ebx
mov dword [ebx + 8], ecx
mov esi, dword [ebp - 0x40]
test esi, esi
je 0x6c9d03c0
mov edi, dword [ebp - 0x38]
mov ecx, dword [edi + 0x1c]
lea esi, [ecx + 0x48]
cmp dword [ecx*4 + 0x6cb1c6ac], edi
je 0x6c9d0abb
mov esi, dword [ebp - 0x40]
cmp dword [0x6cb1c590], esi
ja 0x6c9d0773
cmp dword [esi + 0x10], edi
je 0x6c9d0b03
mov dword [esi + 0x14], ebx
test ebx, ebx
je 0x6c9d03c0
mov ecx, dword [0x6cb1c590]
cmp ecx, ebx
ja 0x6c9d03c0
mov edi, dword [ebp - 0x40]
mov dword [ebx + 0x18], edi
mov edi, dword [ebp - 0x38]
mov esi, dword [edi + 0x10]
cmp ecx, esi
ja 0x6c9d07a3
test esi, esi
je 0x6c9d07a3
mov dword [ebx + 0x10], esi
mov dword [esi + 0x18], ebx
mov edi, dword [ebp - 0x38]
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x6c9d03c0
cmp dword [0x6cb1c590], ecx
ja 0x6c9d03c0
mov dword [ebx + 0x14], ecx
mov dword [ecx + 0x18], ebx
jmp 0x6c9d03c0
mov eax, dword [edx + 8]
cmp eax, dword [0x6cb1c590]
cmovb eax, edx
jmp 0x6c9d0499
mov ebx, dword [ecx*4 + 0x6cb1c6ac]
mov esi, eax
cmp ecx, 0x1f
je 0x6c9d081f
mov edx, ecx
mov ecx, 0x19
shr edx, 1
sub ecx, edx
shl esi, cl
jmp 0x6c9d081f
mov edx, esi
add esi, esi
shr edx, 0x1f
add edx, 4
mov ecx, dword [ebx + edx*4]
test ecx, ecx
je 0x6c9d0a68
mov ebx, ecx
mov edx, dword [ebx + 4]
and edx, 0xfffffffc
cmp edx, eax
jne 0x6c9d0808
mov eax, dword [ebx + 8]
mov edx, dword [0x6cb1c590]
mov dword [ebp - 0x3c], eax
movss xmm0, dword [ebp - 0x3c]
mov dword [ebp - 0x3c], ebx
movss xmm4, dword [ebp - 0x3c]
unpcklps xmm0, xmm4
cmp edx, eax
ja 0x6c9d04c0
cmp edx, ebx
ja 0x6c9d04c0
mov edx, dword [ebp - 0x38]
mov dword [eax + 0xc], edx
mov dword [ebx + 8], edx
mov dword [edx + 0x18], 0
movlps qword [edx + 8], xmm0
jmp 0x6c9d04c0
mov esi, 0x80000000
mov ebx, 0x1a8
mov ecx, 0x1f
jmp 0x6c9d061e
mov ecx, dword [edx + 4]
and ecx, 3
cmp ecx, 3
jne 0x6c9d03c0
mov ecx, eax
mov dword [0x6cb1c588], eax
or ecx, 1
and dword [edx + 4], 0xfffffffe
mov dword [ebx + 4], ecx
mov dword [edx], eax
jmp 0x6c9d04c0
and esi, 0xfffffffe
mov edi, dword [ebp - 0x38]
lea eax, [eax + esi + 0x10]
mov dword [ebp - 0x3c], eax
sub edi, esi
test eax, eax
je 0x6c9d0a89
mov ebx, eax
lea esi, [ebp - 0x34]
jmp 0x6c9d0928
cmp edi, dword [ebp - 0x34]
jne 0x6c9d04c0
cmp edi, dword [ebp - 0x30]
jne 0x6c9d04c0
cmp dword [ebp - 0x24], 0x1000
jne 0x6c9d04c0
cmp ebx, dword [ebp - 0x28]
jb 0x6c9d04c0
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
sub esp, 0xc
test eax, eax
je 0x6c9d04c0
add edi, dword [ebp - 0x28]
sub ebx, dword [ebp - 0x28]
je 0x6c9d0a89
mov dword [esp + 8], 0x1c
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
jne 0x6c9d08d0
jmp 0x6c9d04c0
add eax, dword [0x6cb1c58c]
mov edi, dword [ebp - 0x38]
mov edx, eax
mov dword [0x6cb1c58c], eax
or edx, 1
mov dword [0x6cb1c598], edi
mov dword [edi + 4], edx
cmp dword [0x6cb1c594], edi
je 0x6c9d0ae2
cmp eax, dword [0x6cb1c59c]
jbe 0x6c9d04c0
xor eax, eax
call fcn.6c9cfc30
jmp 0x6c9d04c0
mov ecx, dword [edx + 0x14]
lea esi, [edx + 0x14]
test ecx, ecx
je 0x6c9d0b0b
nop
mov edi, esi
mov ebx, ecx
lea esi, [ecx + 0x14]
mov ecx, dword [ecx + 0x14]
test ecx, ecx
jne 0x6c9d09a0
mov ecx, dword [ebx + 0x10]
lea esi, [ebx + 0x10]
test ecx, ecx
jne 0x6c9d09a0
cmp dword [0x6cb1c590], edi
ja 0x6c9d0687
mov dword [edi], 0
jmp 0x6c9d0687
mov edx, 0xfffffffe
mov ecx, esi
rol edx, cl
and dword [0x6cb1c580], edx
jmp 0x6c9d06f8
mov ebx, 0xfffffffe
rol ebx, cl
and dword [0x6cb1c580], ebx
jmp 0x6c9d03c0
mov ecx, dword [esi + 0x14]
add esi, 0x14
test ecx, ecx
je 0x6c9d0b5e
lea esi, [esi]
mov dword [ebp - 0x3c], esi
mov ebx, ecx
lea esi, [ecx + 0x14]
mov ecx, dword [ecx + 0x14]
test ecx, ecx
jne 0x6c9d0a08
mov ecx, dword [ebx + 0x10]
lea esi, [ebx + 0x10]
test ecx, ecx
jne 0x6c9d0a08
mov esi, dword [ebp - 0x3c]
cmp edi, esi
ja 0x6c9d073b
mov dword [esi], 0
jmp 0x6c9d073b
add eax, dword [0x6cb1c588]
mov edi, dword [ebp - 0x38]
mov edx, eax
mov dword [0x6cb1c588], eax
or edx, 1
mov dword [0x6cb1c594], edi
mov dword [edi + 4], edx
mov dword [edi + eax], eax
jmp 0x6c9d04c0
lea eax, [ebx + edx*4]
cmp dword [0x6cb1c590], eax
ja 0x6c9d04c0
mov eax, dword [ebp - 0x38]
mov dword [ebx + edx*4], eax
mov dword [eax + 0x18], ebx
movlps qword [eax + 8], xmm0
jmp 0x6c9d04c0
mov eax, dword [ebp - 0x3c]
sub dword [0x6cb1c72c], eax
jmp 0x6c9d04c0
mov dword [esi*4 + 0x6cb1c58c], ebx
test ebx, ebx
jne 0x6c9d06bc
mov ecx, dword [edx + 0x1c]
mov edx, 0xfffffffe
rol edx, cl
and dword [0x6cb1c584], edx
jmp 0x6c9d06f8
mov dword [esi*4 + 0x6cb1c58c], ebx
test ebx, ebx
jne 0x6c9d077b
mov ebx, dword [ebp - 0x38]
mov ecx, dword [ebx + 0x1c]
mov ebx, 0xfffffffe
rol ebx, cl
and dword [0x6cb1c584], ebx
jmp 0x6c9d03c0
mov dword [0x6cb1c594], 0
mov dword [0x6cb1c588], 0
jmp 0x6c9d0978
mov dword [edi + 0x10], ebx
jmp 0x6c9d06b8
mov dword [esi + 0x10], ebx
jmp 0x6c9d0773
mov ecx, dword [edx + 0x10]
lea esi, [edx + 0x10]
test ecx, ecx
jne 0x6c9d09a0
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x6c9d06f8
mov ecx, dword [edx + 0x1c]
lea ebx, [ecx + 0x48]
cmp dword [ecx*4 + 0x6cb1c6ac], edx
je 0x6c9d0bdd
mov ebx, dword [ebp - 0x3c]
cmp dword [0x6cb1c590], ebx
ja 0x6c9d06f8
cmp dword [ebx + 0x10], edx
je 0x6c9d0bfd
mov edx, dword [ebp - 0x3c]
mov dword [edx + 0x14], 0
jmp 0x6c9d06f8
mov ebx, dword [ebp - 0x38]
mov ecx, dword [ebx + 0x10]
lea esi, [ebx + 0x10]
test ecx, ecx
jne 0x6c9d0a08
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x6c9d03c0
mov ecx, dword [ebx + 0x1c]
mov esi, ebx
lea ebx, [ecx + 0x48]
cmp dword [ecx*4 + 0x6cb1c6ac], esi
je 0x6c9d0bed
mov ebx, dword [ebp - 0x40]
cmp edi, ebx
ja 0x6c9d03c0
mov edi, dword [ebp - 0x38]
cmp edi, dword [ebx + 0x10]
je 0x6c9d0c09
mov ebx, dword [ebp - 0x40]
mov dword [ebx + 0x14], 0
jmp 0x6c9d03c0
cmp edx, esi
jb 0x6c9d06f8
cmp ecx, ebx
je 0x6c9d0440
jmp 0x6c9d0433
cmp edi, esi
ja 0x6c9d03c0
cmp ecx, ebx
je 0x6c9d03b0
jmp 0x6c9d03a5
mov dword [ebx*4 + 0x6cb1c58c], 0
jmp 0x6c9d0aa6
mov dword [ebx*4 + 0x6cb1c58c], 0
jmp 0x6c9d0aca
mov dword [ebx + 0x10], 0
jmp 0x6c9d06f8
mov dword [ebx + 0x10], 0
jmp 0x6c9d03c0