Function at 0x101996a0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov esi, edx
mov edi, ecx
mov eax, dword [0x102b0014]
xor eax, ebp
mov dword [esp + 0x78], eax
test edx, edx
je 0x101996d9
mov ebx, 0x100
push ebx
push esi
call fcn.1020d865
add esp, 8
cmp eax, ebx
je 0x1019978b
cmp byte [0x102b76a0], 0
jne 0x101996ef
call fcn.101993ec
test al, al
je 0x1019978b
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], eax
xorps xmm0, xmm0
movaps xmmword [esp + 0x30], xmm0
mov dword [ecx], 0xffffffff
xor ecx, ecx
inc ecx
cmp byte [0x102b76a1], 1
mov dword [esp + 0x10], ecx
adc ecx, eax
test edi, edi
cmovne ecx, edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
test esi, esi
je 0x10199a55
mov dword [esp], ecx
lea edi, [esp + 0x20]
mov ecx, edi
push esi
call fcn.10036cb0
movzx ecx, byte [edi + 0xb]
mov eax, dword [edi]
mov edx, ecx
test cl, cl
jns 0x1019975c
mov edx, dword [esp + 0x24]
mov edi, eax
add edx, edx
test edx, edx
je 0x10199774
lea ebx, [edx - 2]
cmp word [edi + edx - 2], 0x5c
mov edx, ebx
je 0x1019975e
cmp ebx, 0xfffffffe
jne 0x101997a4
test cl, cl
js 0x10199792
mov word [esp + 0x20], 0
mov byte [esp + 0x2b], 0
xor eax, eax
jmp 0x101998a3
xor ebx, ebx
jmp 0x10199b81
mov word [eax], 0
mov dword [esp + 0x24], 0
jmp 0x10199897
sar ebx, 1
inc ebx
lea esi, [esp + 0x20]
mov ecx, esi
push 0
push ebx
call fcn.10141e84
movzx eax, byte [esi + 0xb]
test al, al
jns 0x101997c5
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
xor edx, edx
dec edx
test eax, eax
je 0x101997e4
add eax, eax
xor ecx, ecx
cmp word [esi + ecx], 0x5c
jne 0x101997e0
add ecx, 2
cmp eax, ecx
jne 0x101997d0
jmp 0x101997e4
sar ecx, 1
mov edx, ecx
lea esi, [esp + 0x20]
mov ecx, esi
push edx
push 0
call fcn.1013f870
movzx eax, byte [esi + 0xb]
mov ecx, eax
test al, al
jns 0x10199804
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
test ecx, ecx
je 0x10199897
add ecx, ecx
xor edi, edi
cmp word [esi + edi], 0x5c
je 0x10199820
add edi, 2
cmp ecx, edi
jne 0x10199810
jmp 0x10199897
cmp ecx, edi
je 0x10199897
cmp edi, 0xfffffffe
je 0x10199897
sar edi, 1
lea esi, [esp + 0x20]
lea edx, [edi + 1]
test al, al
js 0x10199845
cmp word [esp + edi*2 + 0x22], 0x5c
je 0x10199851
movzx ecx, al
mov eax, esi
jmp 0x10199861
mov eax, dword [esp + 0x20]
cmp word [eax + edi*2 + 2], 0x5c
jne 0x1019985d
mov ecx, esi
push 1
push edx
call fcn.1013f870
jmp 0x1019988c
mov ecx, dword [esp + 0x24]
cmp ecx, edx
jbe 0x10199897
lea edx, [edi + edi]
add edx, 2
add ecx, ecx
mov ebx, ecx
neg ebx
lea edi, [ebx + edx]
cmp edi, 0xfffffffe
je 0x10199897
lea edi, [edx + 2]
cmp word [eax + edx + 2], 0x5c
mov edx, edi
jne 0x10199871
cmp edi, ecx
je 0x10199897
sar edi, 1
cmp edi, 0xffffffff
je 0x10199897
mov al, byte [esp + 0x2b]
jmp 0x1019982f
mov al, byte [esp + 0x2b]
test al, al
js 0x1019994e
movzx eax, al
mov ecx, dword [esp]
test eax, eax
je 0x10199a55
mov eax, dword [ebp + 8]
not eax
test eax, 0x300
je 0x10199a55
cmp ecx, 2
mov eax, 0x102b78c6
mov ecx, 0x102b7ac6
cmove ecx, eax
cmp word [ecx], 0
mov ecx, dword [esp]
jne 0x10199a55
xorps xmm0, xmm0
lea esi, [esp + 0x50]
movaps xmmword [esi + 0x10], xmm0
movaps xmmword [esi], xmm0
mov dword [esi + 0x20], 0
push esi
call dword [sym.imp.kernel32.dll_GetNativeSystemInfo]
cmp word [esi], 0
je 0x10199a52
cmp byte [0x102b78c4], 0
setne al
bt dword [ebp + 8], 8
jb 0x10199a52
mov ecx, dword [ebp + 8]
shr ecx, 9
and ecx, 1
or cl, al
je 0x10199a52
cmp dword [esp], 2
mov eax, 0x102999b0
mov edx, 0x102999c4
cmove edx, eax
movzx eax, byte [esp + 0x2b]
test al, al
jns 0x10199957
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
jmp 0x1019995b
mov eax, dword [esp + 0x24]
jmp 0x101998a6
lea edi, [esp + 0x20]
xor ecx, ecx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x1c], ecx
mov ebx, dword [edx + 4]
mov esi, eax
sub esi, ebx
jb 0x101999a2
push ebx
push dword [edx]
push edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
call fcn.1020d865
mov edx, dword [esp + 0x24]
add esp, 0xc
test eax, eax
mov eax, dword [esp + 0x14]
je 0x101999b2
add edx, 0x14
mov ecx, dword [esp + 0x1c]
inc ecx
cmp ecx, dword [esp + 0x10]
jb 0x10199975
jmp 0x10199a1c
movzx ecx, word [edi + ebx*2]
cmp cx, 0x5c
je 0x101999c1
test cx, cx
jne 0x101999a2
lea eax, [edi + ebx*2]
mov ebx, dword [edx + 8]
cmp ebx, 1
je 0x101999e1
cmp ebx, 2
mov edi, ebx
jne 0x101999ef
mov dword [esp + 8], str.WOW6432Node
mov dword [esp + 4], eax
jmp 0x101999ef
mov dword [esp + 8], str.WOW6432Node_
mov dword [esp + 4], edi
mov edi, ebx
mov dword [esp + 0xc], edi
cmp cx, 0x5c
jne 0x10199a08
lea edi, [eax + 2]
dec esi
cmp word [eax + 2], 0x5c
mov eax, edi
je 0x101999f9
jmp 0x10199a0a
mov edi, eax
mov eax, dword [edx + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0xc]
xor ecx, ecx
mov edx, eax
mov eax, esi
jmp 0x101999aa
cmp dword [esp + 0xc], 0
je 0x10199a52
lea esi, [esp + 0x20]
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x10199a33
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 4]
sub ebx, eax
sar ebx, 1
mov edi, dword [esp + 8]
push edi
call fcn.1020d865
add esp, 4
mov ecx, esi
push eax
push edi
push ebx
call fcn.101415a2
mov ecx, dword [esp]
cmp ecx, 2
jne 0x10199a86
cmp word [0x102b78c6], 0
je 0x10199a86
xor eax, eax
dec eax
lea esi, [esp + 0x50]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov ecx, esi
push 0x102b7ccc
call fcn.10036466
mov edi, 0x102b78c6
jmp 0x10199ab5
cmp ecx, 1
jne 0x10199ad7
cmp word [0x102b7ac6], 0
je 0x10199ad7
xor eax, eax
dec eax
lea esi, [esp + 0x50]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov ecx, esi
push 0x102b7ccc
call fcn.10036466
mov edi, 0x102b7ac6
push edi
call fcn.1020d865
add esp, 4
mov ecx, esi
push eax
push edi
call fcn.1014190a
mov ecx, esi
push 1
push 0x1025cbc6
call fcn.1014190a
jmp 0x10199af1
cmp ecx, 2
mov eax, 0x102b7ccc
mov edx, str.RegistryMachine_
cmove edx, eax
lea ecx, [esp + 0x50]
push edx
call fcn.10036466
lea edi, [esp + 0x50]
movzx eax, byte [edi + 0xb]
test al, al
cmovs eax, dword [edi + 4]
mov edx, dword [edi]
cmovns edx, edi
lea esi, [esp + 0x20]
mov ecx, esi
push eax
push edx
push 0
call fcn.101415a2
cmp byte [edi + 0xb], 0
jns 0x10199b25
push dword [esp + 0x50]
call fcn.10205096
add esp, 4
cmp byte [esp + 0x2b], 0
jns 0x10199b30
mov esi, dword [esp + 0x20]
lea edi, [esp + 0x48]
push esi
push edi
call dword [0x102b76ac]
lea eax, [esp + 0x30]
mov dword [eax], 0x18
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax + 0xc], 0x40
mov dword [eax + 8], edi
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
push ecx
push eax
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [0x102b76b0]
test eax, eax
setns bl
cmp byte [esp + 0x2b], 0
jns 0x10199b81
push dword [esp + 0x20]
call fcn.10205096
add esp, 4
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.10205d16
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret