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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x190
mov eax, esp
mov dword [eax], 0x58
mov eax, dword [sym.imp.USER32.dll_IsCharLowerA]
call eax
sub esp, 4
lea ecx, [esp + 0x17c]
mov edx, esp
mov dword [edx], 9
mov edx, dword [sym.imp.KERNEL32.dll_DeleteAtom]
mov dword [esp + 0xd0], eax
mov dword [esp + 0xcc], ecx
call edx
sub esp, 4
mov ecx, esp
mov dword [ecx + 4], 0x9f1
mov dword [ecx], 0x6b539f
mov ecx, dword [sym.imp.GDI32.dll_GetNearestPaletteIndex]
mov word [esp + 0xca], ax
call ecx
sub esp, 8
mov ecx, esp
mov dword [ecx + 4], 0x568c2d
mov dword [ecx], 0xb6881d
mov ecx, dword [sym.imp.GDI32.dll_SelectClipRgn]
mov dword [esp + 0xc4], eax
call ecx
sub esp, 8
mov ecx, esp
lea edx, [esp + 0x180]
mov dword [ecx + 4], edx
mov dword [ecx + 0xc], 0xd52
mov dword [ecx + 8], 0xd52
mov dword [ecx], 0xccab6d
mov ecx, dword [sym.imp.USER32.dll_DrawEdge]
mov dword [esp + 0xc0], eax
call ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx + 8], 0xba3
mov dword [ecx + 4], 0xf65
mov dword [ecx], 0xd185d2
mov ecx, dword [sym.imp.USER32.dll_GetMenuDefaultItem]
mov dword [esp + 0xbc], eax
call ecx
sub esp, 0xc
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xb8], eax
call ecx
mov dword [esp + 0xe0], 0xcc9
mov ecx, esp
lea edx, [esp + 0xe0]
mov dword [ecx + 8], edx
mov dword [ecx + 4], 0xa08e5
mov dword [ecx], 0xa08e5
mov ecx, dword [sym.imp.KERNEL32.dll_IsProcessInJob]
mov dword [esp + 0xb4], eax
call ecx
sub esp, 0xc
mov ecx, dword [esp + 0xcc]
mov edx, dword [ecx]
mov esi, esp
mov dword [esi + 4], edx
mov dword [esi], 0x2d2a4d
mov edx, dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
mov dword [esp + 0xb0], eax
call edx
sub esp, 8
xor ecx, ecx
lea edx, [esp + 0x100]
lea esi, [esp + 0x130]
lea edi, [esp + 0xe8]
mov dword [esp + 0xac], eax
mov dword [esp + 0xa8], edx
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa0], esi
mov dword [esp + 0x9c], ecx
jmp 0x10001924
xor eax, eax
mov ecx, 0x4c
mov edx, dword [esp + 0xa0]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 0x4c
mov dword [esp + 0x98], eax
mov dword [esp + 0x94], ecx
call fcn.1000e370
mov eax, esp
lea ecx, [esp + 0x130]
mov dword [eax], ecx
call sub.POWRPROF.dll_GetPwrCapabilities
sub esp, 4
mov byte [esp + 0x93], al
jmp 0x10001a49
mov eax, esp
mov dword [eax + 4], 0x2f1
mov dword [eax], 0xa7b06a
mov eax, dword [sym.imp.USER32.dll_ShowWindowAsync]
call eax
sub esp, 8
mov ecx, dword [esp + 0x8c]
add ecx, 1
cmp ecx, 0x6d
mov dword [esp + 0x88], eax
mov dword [esp + 0x9c], ecx
jne 0x10001924
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x9c]
mov ecx, esp
mov dword [ecx], 0xb20
mov ecx, dword [sym.imp.USER32.dll_MessageBeep]
mov dword [esp + 0x8c], eax
call ecx
sub esp, 4
mov ecx, 0x2e346
mov dword [esp + 0xd4], ecx
mov ecx, esp
lea edx, [esp + 0xd4]
mov dword [ecx + 4], edx
mov dword [ecx], 0x1e
mov ecx, dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
mov dword [esp + 0x84], eax
call ecx
sub esp, 8
mov dword [esp + 0xe4], 0xc49
mov ecx, esp
lea edx, [esp + 0xe4]
mov dword [ecx + 8], edx
mov dword [ecx + 4], 0x3414fb
mov dword [ecx], 0x3414fb
mov ecx, dword [sym.imp.KERNEL32.dll_IsProcessInJob]
mov dword [esp + 0x80], eax
call ecx
sub esp, 0xc
xor ecx, ecx
mov edx, 0x14
mov esi, dword [esp + 0xa4]
mov dword [esp], esi
mov dword [esp + 4], 0
mov dword [esp + 8], 0x14
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x74], edx
call fcn.1000e370
mov eax, esp
mov ecx, dword [esp + 0xa4]
mov dword [eax + 8], ecx
mov dword [eax + 4], 0xe5
mov dword [eax], 0x1182ac
mov eax, dword [sym.imp.ADVAPI32.dll_SetKernelObjectSecurity]
call eax
sub esp, 0xc
xor ecx, ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], ecx
mov eax, dword [esp + 0x6c]
mov ecx, 0x38e38e39
mov dword [esp + 0x68], eax
mul ecx
shr edx, 2
imul eax, edx, 0x12
mov ecx, dword [esp + 0x68]
sub ecx, eax
mov eax, ecx
sub eax, 3
mov dword [esp + 0x64], ecx
mov dword [esp + 0x60], eax
je 0x1000188e
jmp 0x10001a3a
mov eax, dword [esp + 0x64]
sub eax, 0xb
mov dword [esp + 0x5c], eax
jne 0x10001a5f
jmp 0x10001a49
mov eax, esp
mov dword [eax], 0x70a9b
mov eax, dword [sym.imp.GDI32.dll_DeleteMetaFile]
call eax
sub esp, 4
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x68]
add eax, 1
cmp eax, 0x1f4
mov dword [esp + 0x6c], eax
jne 0x10001a0a
xor eax, eax
mov ecx, esp
mov dword [ecx + 0x14], 0xcd
mov dword [ecx + 0x10], 0x17d
mov dword [ecx + 0xc], 0x1c8
mov dword [ecx + 8], 0x85c
mov dword [ecx + 4], 0xba
mov dword [ecx], 0xfcd5e1
mov ecx, dword [sym.imp.GDI32.dll_PatBlt]
mov dword [esp + 0x54], eax
call ecx
sub esp, 0x18
xor ecx, ecx
mov edx, dword [esp + 0x8c]
sub edx, 2
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], edx
je 0x10001b33
jmp 0x10001acb
mov eax, dword [esp + 0x8c]
sub eax, 0x3c
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ecx
jne 0x10001ba3
jmp 0x10001ae9
mov eax, esp
mov dword [eax + 4], 0xfe62e7
mov dword [eax], 0xdcf3a3
mov eax, dword [sym.imp.GDI32.dll_SelectClipRgn]
call eax
sub esp, 8
mov ecx, esp
mov dword [ecx], 0x4cf
mov ecx, dword [sym.imp.USER32.dll_BeginDeferWindowPos]
mov dword [esp + 0x3c], eax
call ecx
sub esp, 4
mov ecx, esp
lea edx, [esp + 0xd8]
mov dword [ecx], edx
mov ecx, dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov dword [esp + 0x38], eax
call ecx
sub esp, 4
mov eax, dword [sym.imp.ole32.dll_CoUninitialize]
call eax
mov eax, esp
mov dword [eax], 0x62be5a
mov eax, dword [sym.imp.USER32.dll_DrawMenuBar]
call eax
sub esp, 4
xor ecx, ecx
mov edx, 0x30
mov esi, dword [esp + 0xa8]
mov dword [esp], esi
mov dword [esp + 4], 0
mov dword [esp + 8], 0x30
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], edx
call fcn.1000e370
mov eax, esp
lea ecx, [esp + 0x100]
mov dword [eax + 4], ecx
mov dword [eax], 0x25b
mov eax, dword [sym.imp.USER32.dll_GetGUIThreadInfo]
call eax
sub esp, 8
mov dword [esp + 0x28], eax
jmp 0x100018e1
mov eax, dword [esp + 0x40]
add eax, 1
mov ecx, esp
mov dword [ecx], 0x36ee02
mov ecx, dword [sym.imp.KERNEL32.dll_HeapUnlock]
mov dword [esp + 0x24], eax
call ecx
sub esp, 4
mov ecx, esp
mov dword [ecx + 8], 0xba9
mov dword [ecx + 4], 0xba9
mov dword [ecx], 0x16aa22
mov ecx, dword [sym.imp.GDI32.dll_GetPixel]
mov dword [esp + 0x20], eax
call ecx
sub esp, 0xc
mov ecx, dword [esp + 0x24]
cmp ecx, 0xa
mov dword [esp + 0x1c], eax
mov dword [esp + 0x40], ecx
je 0x100018e1
jmp 0x10001ba3