Function at 0x10001488
Capabilities:
Get system information on windows
Register raw input devices
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0xf0
mov eax, esp
mov dword [eax], 0x98b531
mov eax, dword [sym.imp.USER32.dll_ShowCaret]
call eax
sub esp, 4
mov ecx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp + 0x84], eax
call ecx
xor ecx, ecx
lea edx, [esp + 0xa0]
lea esi, [esp + 0xd8]
mov dword [esp + 0x80], eax
mov dword [esp + 0x7c], edx
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], ecx
jmp 0x100014f3
mov eax, dword [esp + 0x70]
add eax, 1
cmp eax, 0xbc
mov dword [esp + 0x74], eax
je 0x10001728
mov eax, dword [esp + 0x74]
mov ecx, esp
mov dword [ecx + 0xc], 0xe07
mov dword [ecx + 8], 0xb7c
mov dword [ecx + 4], 2
mov dword [ecx], 0x2c44f0
mov ecx, dword [sym.imp.GDI32.dll_SetPixel]
mov dword [esp + 0x70], eax
call ecx
sub esp, 0x10
mov ecx, dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov dword [esp + 0x6c], eax
call ecx
xor ecx, ecx
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], ecx
mov eax, dword [esp + 0x64]
mov ecx, 0x38e38e39
mov dword [esp + 0x60], eax
mul ecx
shr edx, 2
imul eax, edx, 0x12
mov ecx, dword [esp + 0x60]
sub ecx, eax
mov eax, ecx
sub eax, 6
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x58], eax
je 0x10001574
jmp 0x10001565
mov eax, dword [esp + 0x5c]
sub eax, 8
mov dword [esp + 0x54], eax
jne 0x100015b7
jmp 0x10001574
xor eax, eax
mov ecx, 0x14
mov edx, dword [esp + 0x78]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 0x14
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], ecx
call sub.msvcrt.dll_memset
mov eax, esp
mov ecx, dword [esp + 0x78]
mov dword [eax], ecx
mov eax, dword [sym.imp.ADVAPI32.dll_IsValidSecurityDescriptor]
call eax
sub esp, 4
mov dword [esp + 0x48], eax
jmp 0x100015b7
mov eax, dword [esp + 0x60]
add eax, 1
cmp eax, 0xd9
mov dword [esp + 0x64], eax
jne 0x10001539
xor eax, eax
mov ecx, esp
lea edx, [esp + 0xc8]
mov dword [ecx], edx
mov dword [ecx + 8], 0x2bd
mov dword [ecx + 4], 0x2bd
mov ecx, dword [sym.imp.USER32.dll_RegisterRawInputDevices]
mov dword [esp + 0x44], eax
call ecx
sub esp, 0xc
xor ecx, ecx
mov edx, dword [esp + 0x70]
sub edx, 0xa
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], edx
je 0x1000167f
jmp 0x10001612
mov eax, dword [esp + 0x70]
sub eax, 0x51
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
jne 0x1000169d
jmp 0x10001629
mov eax, esp
mov dword [eax], 0xa06e8d
mov eax, dword [sym.imp.KERNEL32.dll_GetLargestConsoleWindowSize]
call eax
sub esp, 4
xor ecx, ecx
mov edx, 0x24
mov esi, dword [esp + 0x7c]
mov dword [esp], esi
mov dword [esp + 4], 0
mov dword [esp + 8], 0x24
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], edx
call sub.msvcrt.dll_memset
mov eax, esp
lea ecx, [esp + 0xa0]
mov dword [eax], ecx
mov eax, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
call eax
sub esp, 4
mov eax, esp
lea ecx, [esp + 0x90]
mov dword [eax], ecx
mov eax, dword [sym.imp.GDI32.dll_CreateBrushIndirect]
call eax
sub esp, 4
mov dword [esp + 0x20], eax
jmp 0x100014db
mov eax, dword [esp + 0x30]
mov ecx, esp
mov dword [ecx + 4], 0x5dbb90
mov dword [ecx], 0x60dfed
mov ecx, dword [sym.imp.USER32.dll_ValidateRgn]
mov dword [esp + 0x1c], eax
call ecx
sub esp, 8
mov ecx, esp
lea edx, [esp + 0x88]
mov dword [ecx], edx
mov ecx, dword [sym.imp.USER32.dll_GetCursorPos]
mov dword [esp + 0x18], eax
call ecx
sub esp, 4
mov ecx, esp
mov dword [ecx + 0xc], 0x8d3
mov dword [ecx + 8], 0xb7a
mov dword [ecx + 4], 0x159
mov dword [ecx], 0x23e2aa
mov ecx, dword [sym.imp.GDI32.dll_SetPixel]
mov dword [esp + 0x14], eax
call ecx
sub esp, 0x10
mov ecx, dword [esp + 0x1c]
add ecx, 1
cmp ecx, 0xa
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], ecx
je 0x100014db
jmp 0x1000169d
lea esp, [ebp - 4]
pop esi
pop ebp
ret