Function at 0x10001240
Capabilities:
Connect pipe
Get geographical location
Register raw input devices
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xf0
mov esi, esp
mov eax, 4
mov dword [esi + 0xac], eax
call fcn.100254b0
mov eax, esp
mov ecx, dword [esi + 0xac]
mov dword [esi + 0xa8], eax
mov eax, ecx
call fcn.100254b0
mov eax, esp
mov ecx, dword [esi + 0xac]
mov dword [esi + 0xa4], eax
mov eax, ecx
call fcn.100254b0
mov eax, esp
mov ecx, 0xc
mov dword [esi + 0xa0], eax
mov eax, ecx
call fcn.100254b0
mov eax, esp
and eax, 0xfffffff8
mov esp, eax
mov ecx, dword [esi + 0xac]
mov dword [esi + 0x9c], eax
mov eax, ecx
call fcn.100254b0
mov eax, esp
mov ecx, 0x14
mov dword [esi + 0x98], eax
mov eax, ecx
call fcn.100254b0
mov eax, esp
and eax, 0xfffffff8
mov esp, eax
sub esp, 8
mov ecx, esp
lea edx, [esi + 0xb0]
mov dword [ecx + 4], edx
mov dword [ecx], 0xf46e3f
mov ecx, dword [sym.imp.USER32.dll_BeginPaint]
mov dword [esi + 0x94], eax
call ecx
mov ecx, 8
mov dword [esi + 0x90], eax
mov eax, ecx
call fcn.100254b0
mov eax, esp
and eax, 0xfffffff8
mov esp, eax
mov ecx, 0xc0
mov dword [esi + 0x8c], eax
mov eax, ecx
call fcn.100254b0
mov eax, esp
and eax, 0xfffffff8
mov esp, eax
sub esp, 0x14
mov ecx, esp
mov dword [ecx + 0x10], 0x46c
mov dword [ecx + 0xc], 0x913
mov dword [ecx + 8], 0x46c
mov dword [ecx + 4], 0xfe4
mov dword [ecx], 0x6afed9
mov ecx, dword [sym.imp.GDI32.dll_ExcludeClipRect]
mov dword [esi + 0x88], eax
call ecx
sub esp, 8
mov ecx, esp
mov dword [ecx + 4], 0x177
mov dword [ecx], 0x9d2bf8
mov ecx, dword [sym.imp.KERNEL32.dll_TerminateJobObject]
mov dword [esi + 0x84], eax
call ecx
sub esp, 4
mov ecx, esp
mov dword [ecx], 0x100da9
mov ecx, dword [sym.imp.GDI32.dll_StrokeAndFillPath]
mov dword [esi + 0x80], eax
call ecx
sub esp, 0xc
mov ecx, esp
mov dword [ecx + 8], 0x27a
mov dword [ecx + 4], 0x27a
mov dword [ecx], 0x8984e4
mov ecx, dword [sym.imp.GDI32.dll_OffsetClipRgn]
mov dword [esi + 0x7c], eax
call ecx
sub esp, 4
mov ecx, esp
mov dword [ecx], 0xa5082e
mov ecx, dword [sym.imp.USER32.dll_UnloadKeyboardLayout]
mov dword [esi + 0x78], eax
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov dword [esi + 0x74], eax
call ecx
sub esp, 8
mov ecx, esp
mov dword [ecx + 4], 0x6d
mov dword [ecx], 0xded08c
mov ecx, dword [sym.imp.USER32.dll_GetSystemMenu]
mov dword [esi + 0x70], eax
call ecx
mov ecx, dword [esi + 0x98]
mov dword [ecx], 0
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0x98]
cmp dword [eax], 0xa7
jne 0x1000141b
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
sub esp, 4
mov eax, esp
mov dword [eax], 0xcf841e
mov eax, dword [sym.imp.GDI32.dll_DeleteObject]
call eax
sub esp, 4
mov ecx, esp
mov dword [ecx], 0x71e
mov ecx, dword [sym.imp.KERNEL32.dll_GetUserGeoID]
mov dword [esi + 0x68], eax
call ecx
sub esp, 8
mov ecx, esp
mov dword [ecx + 4], 0x1aa
mov dword [ecx], 0x16c343
mov ecx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [esi + 0x64], eax
call ecx
sub esp, 0xc
mov ecx, esp
mov edx, dword [esi + 0x9c]
mov dword [ecx], edx
mov dword [ecx + 8], 0x65b
mov dword [ecx + 4], 0x289
mov ecx, dword [sym.imp.USER32.dll_RegisterRawInputDevices]
mov dword [esi + 0x60], eax
call ecx
sub esp, 8
mov ecx, esp
mov edx, dword [esi + 0x94]
mov dword [ecx + 4], edx
mov dword [ecx], 0xff1f93
mov ecx, dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov dword [esi + 0x5c], eax
call ecx
sub esp, 0xc
mov ecx, esp
mov dword [ecx + 8], 0xa05
mov dword [ecx + 4], 0x41
mov dword [ecx], 0x841bf3
mov ecx, dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esi + 0x58], eax
call ecx
mov ecx, dword [esi + 0xa0]
mov dword [ecx], 0
mov dword [esi + 0x54], eax
jmp 0x1000157c
mov eax, dword [esi + 0xa8]
cmp dword [eax], 0xa
jne 0x10001681
jmp 0x100016d9
sub esp, 4
mov eax, esp
mov dword [eax], 0x332d05
mov eax, dword [sym.imp.GDI32.dll_CloseEnhMetaFile]
call eax
mov ecx, 0x141
mov edx, dword [esi + 0x98]
mov edi, dword [edx]
mov dword [esi + 0x50], eax
mov eax, edi
xor edx, edx
div ecx
mov dword [esi + 0x4c], edx
mov eax, dword [esi + 0x4c]
sub eax, 0x13
mov dword [esi + 0x48], eax
je 0x10001643
jmp 0x10001530
mov eax, dword [esi + 0x4c]
sub eax, 0x5b
mov dword [esi + 0x44], eax
je 0x100015d8
jmp 0x10001670
jmp 0x100015c4
mov eax, 0xc
mov ecx, dword [esi + 0xa0]
mov edx, dword [ecx]
mov dword [esi + 0x40], eax
mov eax, edx
xor edx, edx
mov edi, dword [esi + 0x40]
div edi
mov dword [esi + 0x3c], edx
mov eax, dword [esi + 0x3c]
sub eax, 2
mov dword [esi + 0x38], eax
je 0x10001596
jmp 0x1000156f
mov eax, dword [esi + 0x3c]
sub eax, 8
mov dword [esi + 0x34], eax
je 0x10001544
jmp 0x100015c4
mov eax, dword [esi + 0xa0]
mov ecx, dword [eax]
mov dword [esi + 0x30], ecx
mov eax, dword [esi + 0x30]
cmp eax, 0x249
jne 0x10001546
jmp 0x100014f4
sub esp, 0x10
mov eax, esp
mov ecx, dword [esi + 0x8c]
mov dword [eax + 0xc], ecx
mov dword [eax + 8], 0x501
mov dword [eax + 4], 0x17d
mov dword [eax], 0x24e064
mov eax, dword [sym.imp.GDI32.dll_OffsetViewportOrgEx]
call eax
mov dword [esi + 0x2c], eax
jmp 0x10001544
jmp 0x100015c6
mov eax, dword [esi + 0xa0]
mov ecx, dword [eax]
add ecx, 1
mov dword [eax], ecx
jmp 0x1000157c
xor eax, eax
mov ecx, 0xc0
mov edx, dword [esi + 0x88]
sub esp, 0xc
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 0xc0
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], ecx
call fcn.100254e0
add esp, 0xc
sub esp, 4
mov eax, esp
mov ecx, dword [esi + 0x88]
mov dword [eax], ecx
call sub.POWRPROF.dll_WriteGlobalPwrPolicy
mov ecx, dword [esi + 0xa4]
mov dword [ecx], 0xd7b
sub esp, 8
mov edx, esp
mov dword [edx + 4], ecx
mov dword [edx], 0x644303
mov edx, dword [sym.imp.KERNEL32.dll_GetNumberOfConsoleInputEvents]
mov byte [esi + 0x23], al
call edx
mov dword [esi + 0x1c], eax
sub esp, 4
mov eax, esp
mov dword [eax], 0xd2
mov eax, dword [sym.imp.USER32.dll_GetSysColorBrush]
call eax
sub esp, 4
mov ecx, esp
mov dword [ecx], 0x6dbad0
mov ecx, dword [sym.imp.USER32.dll_SetProcessWindowStation]
mov dword [esi + 0x18], eax
call ecx
mov dword [esi + 0x14], eax
jmp 0x100016db
mov eax, dword [esi + 0xa8]
mov dword [eax], 0
jmp 0x100014dd
sub esp, 4
mov eax, esp
mov dword [eax], 0xca0c32
mov eax, dword [sym.imp.KERNEL32.dll_GlobalSize]
call eax
mov dword [esi + 0x10], eax
sub esp, 0xc
mov eax, esp
mov dword [eax + 8], 0x21c
mov dword [eax + 4], 0xc29
mov dword [eax], 0x51442b
mov eax, dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
call eax
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xa8]
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov eax, dword [esi + 8]
add eax, 1
mov ecx, dword [esi + 0xa8]
mov dword [ecx], eax
jmp 0x100014dd
jmp 0x100016db
mov eax, dword [sym.imp.USER32.dll_GetMessagePos]
call eax
mov dword [esi + 4], eax
jmp 0x100016e7
mov eax, dword [esi + 0x98]
mov ecx, dword [eax]
add ecx, 1
mov dword [eax], ecx
jmp 0x10001406