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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x198
mov eax, esp
mov dword [eax], 0x58
mov eax, dword [sym.imp.USER32.dll_IsCharLowerA]
call eax
sub esp, 4
lea ecx, [esp + 0x114]
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 + 0x118]
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 + 0x13c], 0xcc9
mov ecx, esp
lea edx, [esp + 0x13c]
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 + 0xd8]
lea esi, [esp + 0x140]
lea edi, [esp + 0x128]
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 0x1000183b
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
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 + 0x9c], eax
call ecx
sub esp, 4
mov ecx, esp
lea edx, [esp + 0x108]
mov dword [ecx], edx
mov ecx, dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov dword [esp + 0x98], eax
call ecx
sub esp, 4
jmp 0x10001a4e
mov eax, dword [esp + 0xa0]
mov ecx, esp
mov dword [ecx], 0xb20
mov ecx, dword [sym.imp.USER32.dll_MessageBeep]
mov dword [esp + 0x94], eax
call ecx
sub esp, 4
mov ecx, 0x2e346
mov dword [esp + 0x194], ecx
mov ecx, esp
lea edx, [esp + 0x194]
mov dword [ecx + 4], edx
mov dword [ecx], 0x1e
mov ecx, dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
mov dword [esp + 0x90], eax
call ecx
sub esp, 8
mov dword [esp + 0x190], 0xc49
mov ecx, esp
lea edx, [esp + 0x190]
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 + 0x8c], 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 + 0x88], eax
mov dword [esp + 0x84], ecx
mov dword [esp + 0x80], edx
call fcn.1000e350
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 + 0x7c], eax
mov dword [esp + 0x78], ecx
mov eax, dword [esp + 0x78]
mov ecx, 0x38e38e39
mov dword [esp + 0x74], eax
mul ecx
shr edx, 2
imul eax, edx, 0x12
mov ecx, dword [esp + 0x74]
sub ecx, eax
mov eax, ecx
sub eax, 0xb
mov dword [esp + 0x70], ecx
mov dword [esp + 0x6c], eax
je 0x100019aa
jmp 0x10001956
mov eax, dword [esp + 0x70]
sub eax, 3
mov dword [esp + 0x68], eax
jne 0x100019c0
jmp 0x10001965
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 + 0x64], eax
mov dword [esp + 0x60], ecx
call fcn.1000e350
mov eax, esp
lea ecx, [esp + 0x140]
mov dword [eax], ecx
call sub.POWRPROF.dll_GetPwrCapabilities
sub esp, 4
mov byte [esp + 0x5f], al
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 + 0x74]
add eax, 1
cmp eax, 0x1f4
mov dword [esp + 0x78], eax
jne 0x1000192a
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 + 0x94]
sub edx, 0x3c
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], edx
je 0x100017e6
jmp 0x10001a34
mov eax, dword [esp + 0x94]
sub eax, 2
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ecx
jne 0x10001abb
jmp 0x10001a4e
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.1000e350
mov eax, esp
lea ecx, [esp + 0xd8]
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 0x10001b1d
mov eax, dword [esp + 0x40]
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, dword [esp + 0x2c]
add ecx, 1
mov edx, esp
mov dword [edx + 8], 0xba9
mov dword [edx + 4], 0xba9
or eax, dword [eax]
add bh, al
add ah, byte [edx]
stosb byte es:[edi], al
push ss
add byte [ebx + 0x1502815], cl
adc byte [ecx - 0x76d7dbbc], cl
dec esp
and al, 0x24
call edx
sub esp, 0xc
mov ecx, dword [esp + 0x24]
cmp ecx, 0xa
mov dword [esp + 0x20], eax
mov dword [esp + 0x40], ecx
jne 0x10001abb
mov eax, dword [esp + 0x94]
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 + 0x1c], eax
call ecx
sub esp, 8
mov ecx, dword [esp + 0x1c]
cmp ecx, 0x6d
mov dword [esp + 0x18], eax
mov dword [esp + 0xa0], ecx
je 0x100017df
jmp 0x1000183b