Function at 0x1001ca05
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x30], ecx
push edi
test dl, dl
je 0x1001ce51
push 3
mov dword [ebp - 0x1c], 6
mov dword [ebp - 4], ebx
pop edi
jmp 0x1001ca3b
mov eax, dword [ebp - 4]
mov dword [ebp + eax*4 - 0x3c], 0xffffffff
inc dword [ebp - 4]
cmp dword [ebp - 4], edi
jl 0x1001ca2d
mov dword [ebp - 4], ebx
jmp 0x1001ca53
mov eax, dword [ebp - 4]
mov dword [ebp + eax*4 - 0x58], 0xfffffffc
inc dword [ebp - 4]
cmp dword [ebp - 4], 2
jl 0x1001ca45
mov dword [ebp - 4], ebx
jmp 0x1001ca6c
mov eax, dword [ebp - 4]
mov dword [ebp + eax*4 - 0x74], 0x7f3c88fe
inc dword [ebp - 4]
cmp dword [ebp - 4], edi
jl 0x1001ca5e
mov dword [ebp - 4], ebx
jmp 0x1001ca87
mov eax, dword [ebp - 4]
mov dword [ebp + eax*4 - 0xa8], 0xb99bf0bb
inc dword [ebp - 4]
cmp dword [ebp - 4], edi
jl 0x1001ca76
mov eax, dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
mov eax, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x38], 0x9c96c797
mov eax, dword [ebp - 0x38]
sbb ecx, ecx
neg ecx
add eax, ecx
xor ecx, ecx
cmp eax, 0x7a7b
mov dword [ebp - 0x58], eax
sete cl
xor edx, edx
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x3c]
cmp ecx, eax
setne dl
add edx, 0x5c155c18
jne 0x1001cadf
mov eax, dword [ebp - 0x38]
mov eax, dword [ebp - 0x70]
cmp dword [ebp - 0x34], ebx
jne 0x1001caea
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x6c]
xor edx, edx
mov eax, dword [ebp - 0x70]
cmp eax, ecx
mov eax, 0x1a049fe3
setg dl
mov dword [ebp - 0xa4], edx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 8], 0xfffffffe
mov dword [ebp - 4], edi
cmp dword [ebp - 4], ebx
jl 0x1001cb70
mov dword [ebp - 0x1c], ebx
xor ecx, ecx
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0x50]
mov eax, dword [ebp - 4]
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0x50]
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0x50]
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0x50]
mov eax, dword [ebp - 4]
mov edx, dword [ebp + eax*4 - 0x50]
mov eax, dword [ebp - 0x44]
test eax, eax
sets cl
xor eax, eax
cmp ecx, edx
setle al
mov dword [ebp - 0x1c], eax
dec dword [ebp - 4]
jns 0x1001cb24
push 1
pop esi
cmp dword [ebp - 0x4c], ebx
je 0x1001cbe6
mov dword [ebp - 0x14], 6
xor ecx, ecx
mov dword [ebp - 8], 0xfffffffd
mov eax, dword [ebp - 4]
cmp eax, 0x237f4a7d
setl cl
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], ebx
je 0x1001cba9
mov dword [ebp - 0x14], 7
mov edx, esi
cmp dword [ebp - 0x14], ebx
jne 0x1001cbab
mov edx, ebx
cmp dword [ebp - 0x50], ebx
jne 0x1001cbca
cmp dword [ebp - 8], ebx
je 0x1001cbb8
mov eax, dword [ebp - 8]
cmp dword [ebp - 8], 0xb14898d0
jne 0x1001cbc6
cmp dword [ebp - 8], ebx
jne 0x1001cbca
mov ecx, ebx
jmp 0x1001cbcc
mov ecx, esi
xor eax, eax
cmp edx, ecx
setl al
mov dword [ebp - 8], eax
mov byte [ebp - 9], bl
cmp byte [ebp - 9], bl
je 0x1001cc03
call dword [sym.imp.USER32.dll_GetCaretBlinkTime]
jmp 0x1001cc03
mov dword [ebp - 0x1c], 0xfffffffc
mov dword [ebp - 0x14], 0x84f75df1
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
dec dword [ebp - 0x14]
mov byte [ebp - 9], bl
cmp byte [ebp - 9], bl
je 0x1001cd9c
mov dword [ebp - 0x18], 0xffff
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x10], 0x9b85
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], 0x7d02268f
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x24]
jl 0x1001cc46
mov eax, esi
cmp dword [ebp - 4], ebx
jne 0x1001cc48
mov eax, ebx
xor ecx, ecx
cmp ecx, eax
sbb edx, edx
neg edx
imul edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
cmp edx, eax
setge cl
imul eax, ecx, 0x8e3b
xor ecx, ecx
cmp eax, 0x18c8
setl cl
cmp ecx, 0x18e9934b
jne 0x1001cc77
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
xor edx, edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
cmp ecx, eax
setl dl
imul edx, dword [ebp - 0x18]
sub edx, dword [ebp - 8]
neg edx
sbb edx, edx
xor ecx, ecx
inc edx
imul edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
cmp eax, edx
setle cl
imul ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x1001ccb3
mov ecx, ebx
cmp dword [ebp - 0x18], ebx
je 0x1001ccb5
mov ecx, esi
mov eax, dword [ebp - 0x18]
imul eax, ecx
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], 0x7d02c9aa
mov dword [ebp - 4], ebx
jmp 0x1001cd68
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 8], ebx
jmp 0x1001ccec
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x28], 0x40c8
inc dword [ebp - 8]
cmp dword [ebp - 8], esi
jl 0x1001ccde
mov dword [ebp - 0x10], ebx
jmp 0x1001cd5f
mov dword [ebp - 8], 0x70055833
mov eax, dword [ebp - 0x28]
neg eax
jne 0x1001cd1c
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov eax, dword [ebp - 0x28]
cmp eax, esi
setl cl
xor edx, edx
dec ecx
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x20]
cmp ecx, eax
mov eax, dword [ebp - 0x28]
setg dl
xor ecx, ecx
cmp edx, eax
setl cl
xor eax, eax
cmp ecx, 0x9bab
mov ecx, dword [ebp - 0x28]
setl al
sub ecx, eax
mov eax, dword [ebp - 0x28]
sub ecx, eax
mov dword [ebp - 8], ecx
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x22
jg 0x1001ccf6
inc dword [ebp - 4]
cmp dword [ebp - 4], 9
jg 0x1001ccd2
mov byte [ebp - 9], bl
cmp byte [ebp - 9], bl
je 0x1001cd91
push ebx
push 0x8f0
push ebx
push 0x137b
push 0x239b
call dword [sym.imp.GDI32.dll_ExtCreatePen]
push 0x108a
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x1c], 0xb2c21353
mov dword [ebp - 4], ebx
jmp 0x1001cdb9
mov eax, dword [ebp - 4]
mov dword [ebp + eax*4 - 0x9c], 0xffffffff
inc dword [ebp - 4]
cmp dword [ebp - 4], edi
jl 0x1001cda8
mov dword [ebp - 4], ebx
jmp 0x1001cdd4
mov eax, dword [ebp - 4]
mov dword [ebp + eax*4 - 0x90], 0x9b2
inc dword [ebp - 4]
cmp dword [ebp - 4], 2
jl 0x1001cdc3
cmp dword [ebp - 0x1c], ebx
je 0x1001ce23
mov dword [ebp - 0x30], 0xa2768935
mov dword [ebp - 0x30], 0x5010f7a7
mov dword [ebp - 0x30], 6
mov dword [ebp - 0x30], 0x6c3f0bc5
mov dword [ebp - 0x14], 0x50f6b34c
mov dword [ebp - 8], ebx
jmp 0x1001ce18
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0xcc], 0xffffffff
inc dword [ebp - 8]
cmp dword [ebp - 8], 4
jl 0x1001ce07
dec dword [ebp - 0x14]
jmp 0x1001ce40
mov byte [ebp - 9], bl
cmp byte [ebp - 9], bl
je 0x1001ce40
push ebx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetClipBox]
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x94], eax
jmp 0x1001d12c
xor esi, esi
mov dword [ebp - 0x1c], ebx
inc esi
mov dword [ebp - 0x14], esi
push 2
mov dword [ebp - 8], 8
mov dword [ebp - 4], ebx
pop ecx
jmp 0x1001ce77
mov eax, dword [ebp - 4]
mov dword [ebp + eax*4 - 0x68], 0xc5a654fd
inc dword [ebp - 4]
cmp dword [ebp - 4], ecx
jl 0x1001ce69
push 3
mov dword [ebp - 4], ebx
pop edi
jmp 0x1001ce92
mov eax, dword [ebp - 4]
mov dword [ebp + eax*4 - 0x80], 0x12491e29
inc dword [ebp - 4]
cmp dword [ebp - 4], edi
jl 0x1001ce84
mov dword [ebp - 4], ebx
jmp 0x1001ceaa
mov eax, dword [ebp - 4]
mov dword [ebp + eax*4 - 0x40], 0x3026d8d
inc dword [ebp - 4]
cmp dword [ebp - 4], esi
jl 0x1001ce9c
mov dword [ebp - 4], ebx
jmp 0x1001cec2
mov eax, dword [ebp - 4]
mov dword [ebp + eax*4 - 0x60], 0x129ec6ea
inc dword [ebp - 4]
cmp dword [ebp - 4], ecx
jl 0x1001ceb4
mov dword [ebp - 4], ebx
jmp 0x1001cedd
mov eax, dword [ebp - 4]
mov dword [ebp + eax*4 - 0xdc], 0xffffffff
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
jl 0x1001cecc
mov dword [ebp - 4], ebx
jmp 0x1001cef9
mov eax, dword [ebp - 4]
mov dword [ebp + eax*4 - 0xb4], 0x38db075a
inc dword [ebp - 4]
cmp dword [ebp - 4], edi
jl 0x1001cee8
mov dword [ebp - 4], ebx
jmp 0x1001cf10
mov eax, dword [ebp - 4]
mov dword [ebp + eax*4 - 0x88], esi
inc dword [ebp - 4]
cmp dword [ebp - 4], ecx
jl 0x1001cf03
mov eax, dword [ebp - 0x5c]
dec eax
neg eax
sbb eax, eax
xor ecx, ecx
neg eax
lea edx, [eax + 0x79ef0edf]
mov dword [ebp - 0x80], edx
mov dword [ebp - 0xac], edx
mov eax, dword [ebp - 0x68]
cmp edx, eax
setge cl
cmp ecx, dword [ebp - 0x40]
jge 0x1001cf45
cmp dword [ebp - 0x78], ebx
je 0x1001cf45
mov eax, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x40]
xor edx, edx
mov ecx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x68]
cmp ecx, eax
mov eax, dword [ebp - 0x14]
setne dl
xor ecx, ecx
or edi, 0xffffffff
cmp edx, edi
mov edx, esi
setne cl
inc dword [ebp - 0x14]
cmp eax, ecx
mov eax, dword [ebp - 0x1c]
cmovne edx, ebx
xor ecx, ecx
cmp eax, edx
setle cl
mov dword [ebp - 8], ecx
mov dword [ebp - 0x20], 0xad59e57a
mov dword [ebp - 0x18], 0xfffffffa
mov dword [ebp - 4], 0xbbde
mov dword [ebp - 8], edi
mov dword [ebp - 0x24], 0x30bca0be
mov dword [ebp - 0x10], ebx
jmp 0x1001cfae
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x2c], 0x28ea388
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], esi
jl 0x1001cfa0
dec dword [ebp - 4]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], ebx
jmp 0x1001d0ce
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x20], ebx
cmp dword [ebp - 0x20], ebx
jl 0x1001d0cb
mov dword [ebp - 0x1c], edi
mov byte [ebp - 9], bl
cmp byte [ebp - 9], bl
je 0x1001d00c
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov dword [ebp - 8], ebx
cmp dword [ebp - 8], ebx
jl 0x1001d0c2
mov dword [ebp - 0x14], 0x3604
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x18], ebx
jl 0x1001d0b9
mov dword [ebp - 0x24], ebx
jmp 0x1001d0a4
mov dword [ebp - 0x10], 0x6d9de360
mov dword [ebp - 0x10], ebx
jmp 0x1001d063
mov dword [ebp - 0x14], 6
xor edx, edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + eax*4 - 0x2c]
mov eax, dword [ebp - 0x14]
cmp eax, ecx
mov eax, dword [ebp - 0x20]
setle dl
mov dword [ebp + eax*4 - 0x2c], edx
cmp dword [ebp - 0x10], ebx
jne 0x1001d068
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], ebx
jle 0x1001d03c
cmp dword [ebp - 0x14], ebx
jne 0x1001d07c
mov eax, 0xba6dad3f
mov edx, ebx
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x10], eax
jg 0x1001d07e
mov edx, esi
mov eax, dword [ebp - 0x14]
xor ecx, ecx
cmp edx, eax
setle cl
xor eax, eax
cmp ecx, 5
setge al
cmp dword [ebp - 0x10], eax
jge 0x1001d09e
mov dword [ebp - 0x10], 4
jmp 0x1001d0a1
dec dword [ebp - 0x1c]
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], ebx
jle 0x1001d030
mov eax, dword [ebp - 8]
mov eax, dword [ebp + eax*4 - 0x2c]
dec dword [ebp - 0x18]
jns 0x1001d02b
dec dword [ebp - 8]
jns 0x1001d018
dec dword [ebp - 0x20]
jns 0x1001cffa
inc dword [ebp - 4]
cmp dword [ebp - 4], ebx
jle 0x1001cfeb
mov dword [ebp - 8], 0x2ee76f50
mov dword [ebp - 0x1c], edi
mov dword [ebp - 8], ebx
jmp 0x1001d0f3
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0xbc], ebx
inc dword [ebp - 8]
cmp dword [ebp - 8], 2
jl 0x1001d0e6
mov dword [ebp - 8], ebx
jmp 0x1001d122
mov byte [ebp - 9], bl
cmp byte [ebp - 9], bl
je 0x1001d118
push ebx
push 0x1f13
push 0x1f9a
push ebx
call dword [sym.imp.GDI32.dll_GetPaletteEntries]
mov dword [ebp - 0x1c], 0xb8c3ad3b
inc dword [ebp - 8]
cmp dword [ebp - 8], esi
jle 0x1001d0fe
mov eax, dword [ebp - 0x30]
mov dword [eax], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret