Function at 0x1003c967
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x28
mov al, byte [esp + 0x30]
push ebx
mov ebx, dword [esp + 0x34]
and al, 1
push ebp
mov ebp, dword [esp + 0x3c]
push esi
shr ebx, 1
mov byte [esp + 0xf], al
push edi
mov edi, dword [esp + 0x50]
and bl, 1
jne 0x1003c9ae
test edi, edi
jne 0x1003c9ae
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x50], 1
lea eax, [eax*4 - 0x27]
cmp ebp, eax
jb 0x1003c9b3
mov byte [esp + 0x50], 0
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x1003c9d0
push 1
call sym.CoreFoundation.dll__CFGetTSD
pop ecx
mov ecx, dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
test eax, eax
cmove eax, ecx
jmp 0x1003c9d6
mov ecx, dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
cmp eax, ecx
je 0x1003c9ef
cmp eax, dword [sym.CoreFoundation.dll_kCFAllocatorMalloc]
je 0x1003c9ef
mov byte [esp + 0x3c], 8
cmp eax, dword [sym.CoreFoundation.dll_kCFAllocatorMallocZone]
jne 0x1003c9f4
mov byte [esp + 0x3c], 0
cmp byte [esp + 0x50], 0
push 0x10
pop ecx
je 0x1003ca01
lea ecx, [ebp + 0x1f]
push 0
push ecx
push dword [0x10186cdc]
push eax
call sym.CoreFoundation.dll__CFRuntimeCreateInstance
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1003ca20
xor eax, eax
jmp 0x1003cb49
and dword [esi + 8], 0
mov cl, byte [esi + 4]
mov al, byte [esp + 0x50]
and cl, 0xc0
shl al, 2
or cl, al
mov al, byte [esp + 0x13]
or cl, byte [esp + 0x3c]
mov byte [esi + 4], cl
test al, al
je 0x1003ca53
test bl, bl
je 0x1003ca53
mov dword [esi + 0xc], 0x10
or byte [esi + 4], 3
jmp 0x1003ca63
mov al, cl
mov dword [esi + 0xc], ebp
and al, 0xfd
or al, 1
mov byte [esi + 4], al
mov al, byte [esp + 0x13]
test edi, edi
je 0x1003ca84
mov eax, dword [esp + 0x48]
push edi
mov dword [esi + 0x14], eax
call sym.CoreFoundation.dll_CFRetain
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x50]
pop ecx
mov dword [esi + 8], eax
jmp 0x1003cb3b
test al, al
je 0x1003ca9c
test bl, bl
jne 0x1003ca9c
push 6
call sym.CoreFoundation.dll__CFExecutableLinkedOnOrAfter
pop ecx
test al, al
jne 0x1003ca9c
inc bl
jmp 0x1003ca9e
xor bl, bl
cmp byte [esp + 0x50], 0
mov byte [esp + 0x3c], bl
jne 0x1003cae4
push dword [esp + 0x3c]
push dword [esi + 0xc]
push esi
call fcn.1003c5cf
add esp, 0xc
mov dword [esi + 0x14], eax
cmp byte [sym.CoreFoundation.dll___CFOASafe], 0
je 0x1003cad2
push str.CFData__store_
push eax
call sym.CoreFoundation.dll___CFSetLastAllocationEventName
pop ecx
pop ecx
cmp dword [esi + 0x14], 0
jne 0x1003cb12
push esi
call sym.CoreFoundation.dll_CFRelease
pop ecx
jmp 0x1003ca19
cmp dword [esp + 0x4c], 0
jne 0x1003cb10
cmp byte [esp + 0x13], 0
jne 0x1003cb10
and dword [esi + 0x14], 0
and byte [esi + 4], 0xfb
cmp byte [0x101755bf], 0
jne 0x1003cb10
lea eax, [esi + 0x27]
and eax, 0xfffffff0
mov dword [esi + 0x14], eax
or byte [esi + 4], 4
mov bl, 1
push dword [esp + 0x4c]
mov al, byte [esi + 4]
xor bl, 1
push dword [esp + 0x4c]
and al, 0xbf
shl bl, 6
push 0
or bl, al
push 0
mov byte [esi + 4], bl
and dword [esi + 0x10], 0
push esi
call sym.CoreFoundation.dll_CFDataReplaceBytes
add esp, 0x14
mov al, byte [esi + 4]
xor al, byte [esp + 0x40]
and al, 3
xor byte [esi + 4], al
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret