Function at 0x10001496
Capabilities:
Accept command line arguments
Check for debugger via api
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xf8
mov esi, esp
xor eax, eax
lea ecx, [esi + 0xa0]
lea edx, [esi + 0xd0]
mov edi, 4
mov dword [esi + 0x98], eax
mov eax, edi
mov dword [esi + 0x94], edx
mov dword [esi + 0x90], ecx
call fcn.100c7960
mov eax, esp
mov ecx, dword [esi + 0x90]
mov edx, dword [esi + 0x98]
mov dword [esi + 0x8c], eax
mov dword [esi + 0x88], ecx
mov dword [esi + 0x84], edx
jmp 0x100015ae
sub esp, 0xc
mov eax, esp
mov dword [eax + 8], 0x818
mov dword [eax + 4], 0xce5
mov dword [eax], 0xa3f0d6
mov eax, dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
call eax
sub esp, 4
mov ecx, esp
mov dword [ecx], 0xa26008
mov ecx, dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [esi + 0x80], eax
call ecx
mov ecx, dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [esi + 0x7c], eax
call ecx
mov dword [esi + 0x78], eax
jmp 0x10001697
sub esp, 4
mov eax, esp
mov dword [eax], 0x75fd3d
mov eax, dword [sym.imp.KERNEL32.dll_HeapDestroy]
call eax
mov dword [esi + 0xf0], 0x3ba
sub esp, 8
mov ecx, esp
lea edx, [esi + 0xf0]
mov dword [ecx + 4], edx
mov dword [ecx], 0xc16b15
mov ecx, dword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
mov dword [esi + 0x74], eax
call ecx
mov dword [esi + 0x70], eax
mov eax, dword [esi + 0x6c]
add eax, 1
mov dword [esi + 0x68], eax
mov eax, dword [esi + 0x68]
cmp eax, 0x2b4
mov dword [esi + 0x64], eax
je 0x10001665
jmp 0x10001626
mov eax, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call eax
mov dword [esi + 0x60], eax
jmp 0x10001543
mov eax, dword [esi + 0x84]
mov dword [esi + 0xf4], 0xa0e
sub esp, 8
mov ecx, esp
lea edx, [esi + 0xf4]
mov dword [ecx + 4], edx
mov dword [ecx], 0xe16b9c
mov ecx, dword [sym.imp.KERNEL32.dll_GetCommModemStatus]
mov dword [esi + 0x5c], eax
call ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx + 0xc], 0x53bb7c
mov dword [ecx + 8], 0x2ed1e5
mov dword [ecx + 4], 0x691
mov dword [ecx], 0x96c0b9
mov ecx, dword [sym.imp.USER32.dll_CallNextHookEx]
mov dword [esi + 0x58], eax
call ecx
sub esp, 4
mov ecx, esp
mov dword [ecx], 0x84ff9
mov ecx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 0x54], eax
call ecx
xor ecx, ecx
mov dword [esi + 0x50], eax
mov dword [esi + 0x64], ecx
mov eax, dword [esi + 0x64]
mov ecx, 0xf0f0f0f1
mov dword [esi + 0x6c], eax
mul ecx
shr edx, 4
imul eax, edx, 0x11
mov ecx, dword [esi + 0x6c]
sub ecx, eax
mov eax, ecx
sub eax, 6
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x48], eax
je 0x100015a2
jmp 0x10001651
mov eax, dword [esi + 0x4c]
sub eax, 7
mov dword [esi + 0x44], eax
je 0x10001543
jmp 0x10001581
xor eax, eax
xor ecx, ecx
mov edx, dword [esi + 0x5c]
sub edx, 0x31
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x38], edx
je 0x100014f7
jmp 0x10001680
mov eax, dword [esi + 0x5c]
sub eax, 0x11
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], ecx
jne 0x10001726
jmp 0x10001697
mov eax, 0xa2b0d2
mov dword [esi + 0xec], eax
sub esp, 0x10
mov eax, esp
lea ecx, [esi + 0xec]
mov dword [eax + 0xc], ecx
mov dword [eax + 8], 0x9ab
mov dword [eax + 4], 0xb17
mov dword [eax], 0xa2b0d2
mov eax, dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
call eax
sub esp, 4
mov ecx, esp
mov dword [ecx], 0x63d17a
mov ecx, dword [sym.imp.GDI32.dll_CloseFigure]
mov dword [esi + 0x2c], eax
call ecx
mov word [esi + 0xea], 0x3f
sub esp, 0x14
mov ecx, esp
lea edx, [esi + 0xea]
mov dword [ecx + 0x10], edx
mov dword [ecx + 0xc], 0x207
mov dword [ecx + 8], str.__nU4
mov dword [ecx + 4], 0x266
mov dword [ecx], 0x19
mov ecx, dword [sym.imp.KERNEL32.dll_GetStringTypeA]
mov dword [esi + 0x28], eax
call ecx
mov dword [esi + 0x24], eax
jmp 0x10001844
mov eax, dword [esi + 0x30]
xor ecx, ecx
mov edx, 0x14
sub esp, 0xc
mov edi, dword [esi + 0x94]
mov dword [esp], edi
mov dword [esp + 4], 0
mov dword [esp + 8], 0x14
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x18], edx
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [esi + 0xcc], 0x39b
sub esp, 0xc
mov eax, dword [esi + 0x88]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0x14
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [esi + 0x9c], 0x2b6
mov eax, dword [esi + 0x8c]
mov dword [eax], 0x405
sub esp, 0x20
mov ecx, esp
mov dword [ecx + 0x1c], eax
lea edx, [esi + 0x9c]
mov dword [ecx + 0x18], edx
lea edx, [esi + 0xcc]
mov dword [ecx + 0x14], edx
lea edx, [esi + 0xa0]
mov dword [ecx + 0x10], edx
lea edx, [esi + 0xb8]
mov dword [ecx + 0xc], edx
mov edx, dword [esi + 0x94]
mov dword [ecx], edx
mov dword [ecx + 8], 0x39b
mov dword [ecx + 4], 0x5038aa
mov ecx, dword [sym.imp.ADVAPI32.dll_AccessCheck]
call ecx
mov ecx, dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [esi + 0x14], eax
call ecx
sub esp, 8
mov ecx, esp
mov dword [ecx + 4], 0x9c
mov dword [ecx], 0xcc2ea
mov ecx, dword [sym.imp.GDI32.dll_SetMapperFlags]
mov dword [esi + 0x10], eax
call ecx
sub esp, 4
mov ecx, esp
mov dword [ecx], 0xe094
mov ecx, dword [sym.imp.USER32.dll_UnloadKeyboardLayout]
mov dword [esi + 0xc], eax
call ecx
mov ecx, dword [esi + 0x20]
add ecx, 1
cmp ecx, 0xa
mov dword [esi + 8], eax
mov dword [esi + 0x30], ecx
jne 0x10001726
sub esp, 8
mov eax, esp
mov dword [eax + 4], 0x4215b1
mov dword [eax], 0x31c50c
mov eax, dword [sym.imp.ADVAPI32.dll_NotifyChangeEventLog]
call eax
mov ecx, dword [esi + 0x5c]
add ecx, 1
cmp ecx, 0x110
mov dword [esi + 4], eax
mov dword [esi + 0x84], ecx
jne 0x100015ae
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret