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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb8
xor eax, eax
lea ecx, [esp + 0x80]
lea edx, [esp + 0x98]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x70], edx
mov dword [esp + 0x6c], eax
jmp 0x100017dc
mov eax, esp
mov dword [eax + 4], 0xbf4
mov dword [eax], 0x5975e3
mov eax, dword [sym.imp.USER32.dll_GetSystemMenu]
call eax
sub esp, 8
mov dword [esp + 0x68], eax
jmp 0x1000198d
mov eax, dword [esp + 0x6c]
mov ecx, esp
lea edx, [esp + 0x78]
mov dword [ecx + 0xc], edx
mov dword [ecx + 8], 0x389
mov dword [ecx + 4], 0xd72
mov dword [ecx], 0xc31eb9
mov ecx, dword [sym.imp.GDI32.dll_SetBrushOrgEx]
mov dword [esp + 0x64], eax
call ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], 0xd66077
mov ecx, dword [sym.imp.GDI32.dll_CreateHalftonePalette]
mov dword [esp + 0x60], eax
call ecx
sub esp, 4
xor ecx, ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], ecx
jmp 0x10001888
mov eax, esp
mov dword [eax], 0xdc8
mov eax, dword [sym.imp.KERNEL32.dll_SetErrorMode]
call eax
sub esp, 4
mov ecx, dword [esp + 0x64]
sub ecx, 0x11
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], ecx
je 0x1000198d
jmp 0x10001858
mov eax, dword [esp + 0x64]
sub eax, 0x26
mov dword [esp + 0x4c], eax
je 0x100017ba
jmp 0x1000186b
mov eax, dword [esp + 0x64]
add eax, 1
cmp eax, 0x53
mov dword [esp + 0x6c], eax
je 0x10001a08
jmp 0x100017dc
mov eax, dword [esp + 0x58]
mov ecx, 0xaaaaaaab
mov dword [esp + 0x48], eax
mul ecx
shr edx, 3
imul eax, edx, 0xc
mov ecx, dword [esp + 0x48]
sub ecx, eax
mov eax, ecx
sub eax, 8
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], eax
je 0x1000192f
jmp 0x100018b4
mov eax, dword [esp + 0x44]
sub eax, 5
mov dword [esp + 0x3c], eax
jne 0x10001970
jmp 0x100018c7
mov eax, esp
lea ecx, [esp + 0x90]
mov dword [eax + 8], ecx
mov dword [eax + 4], 0x87f
mov dword [eax], 0xe
mov eax, dword [sym.imp.OLEAUT32.dll_SafeArrayDestroy]
call eax
sub esp, 0xc
mov dword [esp + 0xb4], 0x1aa
mov ecx, esp
lea edx, [esp + 0xb4]
mov dword [ecx + 4], edx
mov dword [ecx + 0x10], 0x965b54
mov dword [ecx + 0xc], 0xb2afd6
mov dword [ecx + 8], 0x301
mov dword [ecx], 0x1aa
mov ecx, dword [sym.imp.USER32.dll_BroadcastSystemMessageA]
mov dword [esp + 0x38], eax
call ecx
sub esp, 0x14
mov dword [esp + 0x34], eax
xor eax, eax
mov ecx, 0x14
mov edx, dword [esp + 0x70]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 0x14
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
call fcn.10001ec0
mov eax, esp
mov ecx, dword [esp + 0x70]
mov dword [eax], ecx
mov eax, dword [sym.imp.ADVAPI32.dll_IsValidSecurityDescriptor]
call eax
sub esp, 4
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x48]
add eax, 1
cmp eax, 0x3c4
mov dword [esp + 0x58], eax
je 0x1000182f
jmp 0x10001888
xor eax, eax
mov ecx, 0xc
mov edx, 0xccc00a
mov dword [esp + 0xb0], edx
mov edx, dword [esp + 0x74]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 0xc
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
call fcn.10001ec0
mov eax, esp
lea ecx, [esp + 0xb0]
mov dword [eax + 0x14], ecx
lea ecx, [esp + 0x80]
mov dword [eax + 8], ecx
mov dword [eax + 0x10], 0x34d
mov dword [eax + 0xc], 0xecd
mov dword [eax + 4], 0xbe7
mov dword [eax], 0xccc00a
mov eax, dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
call eax
sub esp, 0x18
mov dword [esp + 0x1c], eax
jmp 0x1000186b
mov esp, ebp
pop ebp
ret