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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x1a0
mov eax, esp
mov dword [eax], 0x58
mov eax, dword [sym.imp.USER32.dll_IsCharLowerA]
call eax
sub esp, 4
lea ecx, [esp + 0x154]
mov edx, esp
mov dword [edx], 9
mov edx, dword [sym.imp.KERNEL32.dll_DeleteAtom]
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd0], 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 + 0xce], 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 + 0xc8], eax
call ecx
sub esp, 8
mov ecx, esp
lea edx, [esp + 0x158]
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 + 0xc4], 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 + 0xc0], eax
call ecx
sub esp, 0xc
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xbc], eax
call ecx
mov dword [esp + 0x16c], 0xcc9
mov ecx, esp
lea edx, [esp + 0x16c]
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 + 0xb8], eax
call ecx
sub esp, 0xc
mov ecx, dword [esp + 0xd0]
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 + 0xb4], eax
call edx
sub esp, 8
xor ecx, ecx
lea edx, [esp + 0x170]
lea esi, [esp + 0xe0]
lea edi, [esp + 0x130]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xac], edx
mov dword [esp + 0xa8], edi
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa0], ecx
jmp 0x10001918
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 + 0x9c], eax
call ecx
sub esp, 0x18
xor ecx, ecx
mov edx, dword [esp + 0x98]
sub edx, 2
mov dword [esp + 0x94], eax
mov dword [esp + 0x90], ecx
mov dword [esp + 0x8c], edx
je 0x10001ae8
jmp 0x100018d0
mov eax, dword [esp + 0x98]
sub eax, 0x3c
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], ecx
je 0x10001a9e
jmp 0x10001b55
mov eax, esp
mov dword [eax], 0x70a9b
mov eax, dword [sym.imp.GDI32.dll_DeleteMetaFile]
call eax
sub esp, 4
mov dword [esp + 0x80], eax
jmp 0x10001a81
mov eax, dword [esp + 0xa0]
mov ecx, esp
mov dword [ecx], 0xb20
mov ecx, dword [sym.imp.USER32.dll_MessageBeep]
mov dword [esp + 0x98], eax
call ecx
sub esp, 4
mov ecx, 0x2e346
mov dword [esp + 0xdc], ecx
mov ecx, esp
lea edx, [esp + 0xdc]
mov dword [ecx + 4], edx
mov dword [ecx], 0x1e
mov ecx, dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
mov dword [esp + 0x7c], eax
call ecx
sub esp, 8
mov dword [esp + 0xd8], 0xc49
mov ecx, esp
lea edx, [esp + 0xd8]
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 + 0x78], eax
call ecx
sub esp, 0xc
xor ecx, ecx
mov edx, 0x14
mov esi, dword [esp + 0xa8]
mov dword [esp], esi
mov dword [esp + 4], 0
mov dword [esp + 8], 0x14
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], ecx
mov dword [esp + 0x6c], edx
call fcn.1000e360
mov eax, esp
mov ecx, dword [esp + 0xa8]
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 + 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, 0xb
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x58], eax
je 0x100018fa
jmp 0x10001a28
mov eax, dword [esp + 0x5c]
sub eax, 3
mov dword [esp + 0x54], eax
jne 0x10001a81
jmp 0x10001a37
xor eax, eax
mov ecx, 0x4c
mov edx, dword [esp + 0xa4]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 0x4c
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], ecx
call fcn.1000e360
mov eax, esp
lea ecx, [esp + 0xe0]
mov dword [eax], ecx
call sub.POWRPROF.dll_GetPwrCapabilities
sub esp, 4
mov byte [esp + 0x4b], al
jmp 0x100018fa
mov eax, dword [esp + 0x60]
add eax, 1
cmp eax, 0x1f4
mov dword [esp + 0x64], eax
je 0x10001868
jmp 0x100019f8
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 + 0x44], eax
call ecx
sub esp, 4
mov ecx, esp
lea edx, [esp + 0x148]
mov dword [ecx], edx
mov ecx, dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov dword [esp + 0x40], 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 + 0xac]
mov dword [esp], esi
mov dword [esp + 4], 0
mov dword [esp + 8], 0x30
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], edx
call fcn.1000e360
mov eax, esp
lea ecx, [esp + 0x170]
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 + 0x30], eax
jmp 0x10001bb4
mov eax, dword [esp + 0x84]
add eax, 1
mov ecx, esp
mov dword [ecx], 0x36ee02
mov ecx, dword [sym.imp.KERNEL32.dll_HeapUnlock]
mov dword [esp + 0x2c], 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 + 0x28], eax
call ecx
sub esp, 0xc
mov ecx, dword [esp + 0x2c]
cmp ecx, 0xa
mov dword [esp + 0x24], eax
mov dword [esp + 0x84], ecx
jne 0x10001b55
mov eax, dword [esp + 0x98]
add eax, 1
mov ecx, esp
mov dword [ecx + 4], 0x2f1
mov dword [ecx], 0xa7b06a
mov ecx, dword [sym.imp.USER32.dll_ShowWindowAsync]
mov dword [esp + 0x20], eax
call ecx
sub esp, 8
mov ecx, dword [esp + 0x20]
cmp ecx, 0x6d
mov dword [esp + 0x1c], eax
mov dword [esp + 0xa0], ecx
jne 0x10001918
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret