Function at 0x100012de
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x100
xor eax, eax
lea ecx, [esp + 0xa8]
lea edx, [esp + 0xc8]
lea esi, [esp + 0x94]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x8c], edx
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], eax
jmp 0x1000134a
mov eax, esp
mov dword [eax], 0x772
mov eax, dword [sym.imp.USER32.dll_BeginDeferWindowPos]
call eax
sub esp, 4
mov ecx, dword [sym.imp.USER32.dll_GetShellWindow]
mov dword [esp + 0x80], eax
call ecx
mov dword [esp + 0x7c], eax
jmp 0x100015db
mov eax, dword [esp + 0x84]
mov ecx, esp
mov dword [ecx + 4], 0x5a3190
mov dword [ecx], 0xc49839
mov ecx, dword [sym.imp.GDI32.dll_InvertRgn]
mov dword [esp + 0x78], eax
call ecx
sub esp, 8
xor ecx, ecx
mov edx, 0x34
mov esi, dword [esp + 0x8c]
mov dword [esp], esi
mov dword [esp + 4], 0
mov dword [esp + 8], 0x34
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], ecx
mov dword [esp + 0x6c], edx
call fcn.10089170
mov eax, esp
lea ecx, [esp + 0xc8]
mov dword [eax + 4], ecx
mov dword [eax + 8], 0xc5b
mov dword [eax], 0x92acd3
mov eax, dword [sym.imp.KERNEL32.dll_SetCommConfig]
call eax
sub esp, 0xc
mov ecx, esp
mov dword [ecx], 0x56c7c6
mov ecx, dword [sym.imp.USER32.dll_SetProcessWindowStation]
mov dword [esp + 0x68], eax
call ecx
sub esp, 4
xor ecx, ecx
mov edx, 0x1c
mov esi, dword [esp + 0x90]
mov dword [esp], esi
mov dword [esp + 4], 0
mov dword [esp + 8], 0x1c
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x5c], edx
call fcn.10089170
mov eax, esp
lea ecx, [esp + 0xa8]
mov dword [eax], ecx
mov eax, dword [sym.imp.USER32.dll_TranslateMessage]
call eax
sub esp, 4
mov ecx, esp
mov dword [ecx + 4], 0x5a9
mov dword [ecx], 0x334e0
mov ecx, dword [sym.imp.GDI32.dll_SetICMMode]
mov dword [esp + 0x58], eax
call ecx
sub esp, 8
xor ecx, ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], ecx
mov eax, dword [esp + 0x50]
mov ecx, 0x88888889
mov dword [esp + 0x4c], eax
mul ecx
shr edx, 3
imul eax, edx, 0xf
mov ecx, dword [esp + 0x4c]
sub ecx, eax
mov eax, ecx
sub eax, 0xa
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], eax
je 0x10001490
jmp 0x10001476
mov eax, dword [esp + 0x48]
sub eax, 1
mov dword [esp + 0x40], eax
jne 0x100014e3
jmp 0x10001485
mov eax, dword [sym.imp.ole32.dll_CoSuspendClassObjects]
call eax
mov dword [esp + 0x3c], eax
mov eax, esp
mov dword [eax + 4], 0xa95
mov dword [eax], 0xaec0a2
mov eax, dword [sym.imp.SHLWAPI.dll_GetMenuPosFromID]
call eax
sub esp, 8
mov dword [esp + 0x9c], 0x702
mov ecx, esp
lea edx, [esp + 0x9c]
mov dword [ecx + 4], edx
lea edx, [esp + 0xa0]
mov dword [ecx], edx
mov dword [ecx + 8], 0x326
mov ecx, dword [sym.imp.USER32.dll_GetRawInputDeviceList]
mov dword [esp + 0x38], eax
call ecx
sub esp, 0xc
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x4c]
add eax, 1
cmp eax, 0x286
mov dword [esp + 0x50], eax
jne 0x1000144a
xor eax, eax
mov ecx, esp
mov dword [ecx], 0x44def1
mov ecx, dword [sym.imp.USER32.dll_PaintDesktop]
mov dword [esp + 0x30], eax
call ecx
sub esp, 4
xor ecx, ecx
mov edx, dword [esp + 0x78]
sub edx, 0xa
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], edx
je 0x10001320
jmp 0x10001531
mov eax, dword [esp + 0x78]
sub eax, 0x3c
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
jne 0x10001571
jmp 0x10001548
mov dword [esp + 0x98], 0xd88
mov eax, esp
lea ecx, [esp + 0x98]
mov dword [eax], ecx
mov eax, dword [sym.imp.KERNEL32.dll_GetConsoleDisplayMode]
call eax
sub esp, 4
mov dword [esp + 0x18], eax
jmp 0x10001320
mov eax, dword [esp + 0x1c]
mov ecx, esp
mov dword [ecx], 0xf19
mov ecx, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x14], eax
call ecx
sub esp, 4
mov dword [esp + 0x94], 0
mov eax, esp
mov ecx, dword [esp + 0x88]
mov dword [eax + 0xc], ecx
mov dword [eax + 8], 0xad9
mov dword [eax + 4], 0xad9
mov dword [eax], 0x346488
mov eax, dword [sym.imp.GDI32.dll_SetPaletteEntries]
call eax
sub esp, 0x10
mov ecx, dword [esp + 0x14]
add ecx, 1
cmp ecx, 0xa
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ecx
jne 0x10001571
mov eax, dword [esp + 0x78]
add eax, 1
cmp eax, 0x8f
mov dword [esp + 0x84], eax
jne 0x1000134a
lea esp, [ebp - 4]
pop esi
pop ebp
ret