Function at 0x10001360
Capabilities:
Check for debugger via api
Get system information on windows
Resolve function by parsing pe exports
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x268
mov esi, esp
xor eax, eax
mov ecx, 0x18
lea edx, [esi + 0x210]
mov edi, 4
mov dword [esi + 0xb4], eax
mov eax, edi
mov dword [esi + 0xb0], edi
mov dword [esi + 0xac], ecx
mov dword [esi + 0xa8], edx
call fcn.102462f0
mov eax, esp
mov ecx, dword [esi + 0xb0]
mov dword [esi + 0xa4], eax
mov eax, ecx
call fcn.102462f0
mov eax, esp
sub esp, 0xc
mov ecx, esp
mov dword [ecx + 8], 0x413
mov dword [ecx + 4], 0xf8d
mov dword [ecx], 0x5ff214
mov ecx, dword [sym.imp.KERNEL32.dll_EraseTape]
mov dword [esi + 0xa0], eax
call ecx
mov ecx, 0x24
mov dword [esi + 0x9c], eax
mov eax, ecx
call fcn.102462f0
mov eax, esp
and eax, 0xfffffff8
mov esp, eax
mov ecx, dword [esi + 0xa8]
sub esp, 0xc
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], 0x18
mov dword [esi + 0x98], eax
call fcn.10246470
add esp, 0xc
sub esp, 4
mov eax, esp
lea ecx, [esi + 0x210]
mov dword [eax], ecx
mov eax, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call eax
sub esp, 0x14
mov eax, esp
mov dword [eax + 0x10], 0x69e
mov dword [eax + 0xc], 0x485
mov dword [eax + 8], 0x485
mov dword [eax + 4], 0x69e
mov dword [eax], 0x943182
mov eax, dword [sym.imp.KERNEL32.dll_LockFile]
call eax
sub esp, 8
mov ecx, esp
mov dword [ecx + 4], 0x5be
mov dword [ecx], 0xcb
mov ecx, dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
mov dword [esi + 0x94], eax
call ecx
mov dword [esi + 0x25c], 0
mov dword [esi + 0x90], eax
cmp dword [esi + 0x25c], 0xbc
je 0x100018ed
sub esp, 4
mov eax, esp
mov dword [eax], 0x5c4908
mov eax, dword [sym.imp.USER32.dll_IsWindowVisible]
call eax
sub esp, 4
mov ecx, esp
mov dword [ecx], 0x7b3af3
mov ecx, dword [sym.imp.KERNEL32.dll_SuspendThread]
mov dword [esi + 0x8c], eax
call ecx
mov dword [esi + 0x20c], 0x86c
sub esp, 8
mov ecx, esp
lea edx, [esi + 0x20c]
mov dword [ecx + 4], edx
mov dword [ecx], 0xdd3f54
mov ecx, dword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
mov dword [esi + 0x88], eax
call ecx
sub esp, 8
mov ecx, esp
mov dword [ecx + 4], 0xf98
mov dword [ecx], 0x8ff754
mov ecx, dword [sym.imp.KERNEL32.dll_SetMailslotInfo]
mov dword [esi + 0x84], eax
call ecx
mov dword [esi + 0xbc], 0
mov dword [esi + 0x80], eax
cmp dword [esi + 0xbc], 0x20
setne al
mov byte [esi + 0x7f], al
mov al, byte [esi + 0x7f]
test al, 1
jne 0x10001547
jmp 0x10001620
mov eax, dword [esi + 0xbc]
mov ecx, 0xf0f0f0f1
mov dword [esi + 0x78], eax
mul ecx
shr edx, 4
imul eax, edx, 0x11
mov ecx, dword [esi + 0x78]
sub ecx, eax
mov eax, ecx
sub eax, 0xb
mov dword [esi + 0x74], ecx
mov dword [esi + 0x70], eax
je 0x100015ea
jmp 0x10001571
mov eax, dword [esi + 0x74]
sub eax, 5
mov dword [esi + 0x6c], eax
jne 0x10001608
jmp 0x10001582
sub esp, 8
mov eax, esp
mov dword [eax + 4], 0xb08
mov dword [eax], 0xbb9618
mov eax, dword [sym.imp.USER32.dll_SwitchToThisWindow]
call eax
xor eax, eax
mov ecx, 0x2c
lea edx, [esi + 0x228]
sub esp, 0xc
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 0x2c
mov dword [esi + 0x68], eax
mov dword [esi + 0x64], ecx
call fcn.10246470
add esp, 0xc
sub esp, 8
mov eax, esp
lea ecx, [esi + 0x228]
mov dword [eax + 4], ecx
mov dword [eax], 0xe1b2da
mov eax, dword [sym.imp.USER32.dll_SetWindowPlacement]
call eax
mov dword [esi + 0x60], eax
sub esp, 8
mov eax, esp
mov dword [eax + 4], 0x86
mov dword [eax], 0x6ff7e2
mov eax, dword [sym.imp.GDI32.dll_SetBkMode]
call eax
mov dword [esi + 0x5c], eax
jmp 0x10001608
jmp 0x1000160a
mov eax, dword [esi + 0xbc]
add eax, 1
mov dword [esi + 0xbc], eax
jmp 0x1000152b
lea eax, [esi + 0xc0]
mov dword [esi + 0x58], eax
sub esp, 0xc
mov eax, esp
mov ecx, dword [esi + 0x58]
mov dword [eax], ecx
mov dword [eax + 8], 0x140
mov dword [eax + 4], 0
call fcn.10246470
add esp, 0xc
sub esp, 8
mov eax, esp
lea ecx, [esi + 0xc0]
mov dword [eax + 4], ecx
mov dword [eax], 0x3941f4
mov eax, dword [sym.imp.KERNEL32.dll_FindNextFileA]
call eax
mov ecx, dword [esi + 0x25c]
mov edx, 0xcc29786d
mov dword [esi + 0x54], eax
mov eax, ecx
mul edx
shr edx, 8
imul eax, edx, 0x141
sub ecx, eax
mov eax, ecx
sub eax, 9
mov dword [esi + 0x50], ecx
mov dword [esi + 0x4c], eax
je 0x10001704
jmp 0x10001690
mov eax, dword [esi + 0x50]
sub eax, 0x3f
mov dword [esi + 0x48], eax
jne 0x100017a5
jmp 0x100016a1
lea eax, [esi + 0x260]
mov dword [esi + 0x44], eax
xor eax, eax
mov ecx, 4
sub esp, 0xc
mov edx, dword [esi + 0x44]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 4
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], ecx
call fcn.10246470
add esp, 0xc
sub esp, 0x10
mov eax, esp
lea ecx, [esi + 0x260]
mov dword [eax + 0xc], ecx
mov dword [eax + 8], 0x288
mov dword [eax + 4], 0x25a
mov dword [eax], 0x5cf6ae
mov eax, dword [sym.imp.GDI32.dll_GetPaletteEntries]
call eax
mov dword [esi + 0x38], eax
sub esp, 0xc
mov eax, esp
mov dword [eax + 8], 0xe5d12b
mov dword [eax + 4], 0x5591ac
mov dword [eax], 0x14d
call sub.USER32.dll_PackDDElParam
sub esp, 0xc
mov ecx, esp
mov dword [ecx + 8], 0x5a0
mov dword [ecx + 4], 0xb3a8b4
mov dword [ecx], 0xb3a8b4
mov ecx, dword [sym.imp.USER32.dll_GetNextDlgTabItem]
mov dword [esi + 0x34], eax
call ecx
mov word [esi + 0xba], 6
mov dword [esi + 0x204], 0xc74
mov ecx, dword [esi + 0x258]
mov dword [esi + 0x208], ecx
sub esp, 0x14
mov ecx, esp
lea edx, [esi + 0x204]
mov dword [ecx + 0x10], edx
mov edx, dword [esi + 0x208]
mov dword [ecx + 0xc], edx
lea edx, [esi + 0xba]
mov dword [ecx + 4], edx
mov dword [ecx + 8], 0xa6
mov dword [ecx], 0xe63f14
mov ecx, dword [sym.imp.KERNEL32.dll_ReadConsoleOutputAttribute]
mov dword [esi + 0x30], eax
call ecx
mov dword [esi + 0x2c], eax
jmp 0x100018a7
mov eax, dword [esi + 0xa4]
mov dword [eax], 0
mov eax, dword [esi + 0xa4]
cmp dword [eax], 0xa
setne cl
mov byte [esi + 0x2b], cl
mov al, byte [esi + 0x2b]
test al, 1
jne 0x100017cf
jmp 0x100018a5
mov eax, dword [esi + 0x98]
sub esp, 4
mov ecx, esp
mov dword [ecx], 3
mov ecx, dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
mov dword [esi + 0x24], eax
call ecx
mov ecx, dword [esi + 0xa0]
mov dword [ecx], 0x3a6
sub esp, 0x14
mov edx, esp
mov dword [edx + 0x10], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 8], ecx
mov dword [edx + 4], ecx
mov dword [edx], 0xf4ca38
mov edx, dword [sym.imp.KERNEL32.dll_GetNamedPipeInfo]
mov dword [esi + 0x20], eax
call edx
sub esp, 8
mov ecx, esp
mov dword [ecx + 4], 0x907
mov dword [ecx], 0xa2cb6e
mov ecx, dword [sym.imp.GDI32.dll_ResizePalette]
mov dword [esi + 0x1c], eax
call ecx
xor ecx, ecx
mov edx, 0x24
sub esp, 0xc
mov edi, dword [esi + 0x24]
mov dword [esp], edi
mov dword [esp + 4], 0
mov dword [esp + 8], 0x24
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], edx
call fcn.10246470
add esp, 0xc
sub esp, 4
mov eax, esp
mov ecx, dword [esi + 0x98]
mov dword [eax], ecx
mov eax, dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
call eax
sub esp, 4
mov eax, esp
mov dword [eax], 0x562de0
mov eax, dword [sym.imp.GDI32.dll_SwapBuffers]
call eax
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xa4]
mov ecx, dword [eax]
add ecx, 1
mov dword [eax], ecx
jmp 0x100017b1
jmp 0x100018a7
sub esp, 0x10
mov eax, esp
mov dword [eax + 0xc], 0x6d7
mov dword [eax + 8], 0x72e
mov dword [eax + 4], 0x72e
mov dword [eax], 0x72e
mov eax, dword [sym.imp.GDI32.dll_CreateRectRgn]
call eax
mov dword [esi + 8], eax
mov eax, dword [esi + 0x25c]
add eax, 1
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
mov dword [esi + 0x25c], eax
jmp 0x10001494
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret