Function at 0x10001377
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 ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x298
mov eax, esp
mov dword [eax + 8], 0x413
mov dword [eax + 4], 0xf8d
mov dword [eax], 0x5ff214
mov eax, dword [sym.imp.KERNEL32.dll_EraseTape]
call eax
sub esp, 0xc
xor ecx, ecx
mov edx, 0x18
lea esi, [esp + 0xd8]
lea edi, [esp + 0x264]
lea ebx, [esp + 0xcc]
mov dword [esp], esi
mov dword [esp + 4], 0
mov dword [esp + 8], 0x18
mov dword [esp + 0xc8], eax
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xc0], edx
mov dword [esp + 0xbc], edi
mov dword [esp + 0xb8], ebx
call fcn.10203de0
mov eax, esp
lea ecx, [esp + 0xd8]
mov dword [eax], ecx
mov eax, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call eax
sub esp, 4
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, 0x14
mov ecx, esp
mov dword [ecx + 4], 0x5be
mov dword [ecx], 0xcb
mov ecx, dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
mov dword [esp + 0xb4], eax
call ecx
sub esp, 8
xor ecx, ecx
lea edx, [esp + 0xf0]
lea esi, [esp + 0x120]
lea edi, [esp + 0x268]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xac], edx
mov dword [esp + 0xa8], esi
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa0], ecx
jmp 0x100014c2
mov eax, esp
mov dword [eax + 4], 0x86
mov dword [eax], 0x6ff7e2
mov eax, dword [sym.imp.GDI32.dll_SetBkMode]
call eax
sub esp, 8
mov dword [esp + 0x9c], eax
jmp 0x10001611
mov eax, dword [esp + 0xa0]
mov ecx, esp
mov dword [ecx], 0x5c4908
mov ecx, dword [sym.imp.USER32.dll_IsWindowVisible]
mov dword [esp + 0x98], eax
call ecx
sub esp, 4
mov ecx, esp
mov dword [ecx], 0x7b3af3
mov ecx, dword [sym.imp.KERNEL32.dll_SuspendThread]
mov dword [esp + 0x94], eax
call ecx
sub esp, 4
mov dword [esp + 0x11c], 0x86c
mov ecx, esp
lea edx, [esp + 0x11c]
mov dword [ecx + 4], edx
mov dword [ecx], 0xdd3f54
mov ecx, dword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
mov dword [esp + 0x90], 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 [esp + 0x8c], eax
call ecx
sub esp, 8
xor ecx, ecx
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], ecx
mov eax, dword [esp + 0x84]
mov ecx, 0xf0f0f0f1
mov dword [esp + 0x80], eax
mul ecx
shr edx, 4
imul eax, edx, 0x11
mov ecx, dword [esp + 0x80]
sub ecx, eax
mov eax, ecx
sub eax, 0xb
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x78], eax
je 0x1000149d
jmp 0x10001596
mov eax, dword [esp + 0x7c]
sub eax, 5
mov dword [esp + 0x74], eax
jne 0x10001611
jmp 0x100015a5
mov eax, esp
mov dword [eax + 4], 0xb08
mov dword [eax], 0xbb9618
mov eax, dword [sym.imp.USER32.dll_SwitchToThisWindow]
call eax
sub esp, 8
xor eax, eax
mov ecx, 0x2c
mov edx, dword [esp + 0xa4]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 0x2c
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], ecx
call fcn.10203de0
mov eax, esp
lea ecx, [esp + 0x268]
mov dword [eax + 4], ecx
mov dword [eax], 0xe1b2da
mov eax, dword [sym.imp.USER32.dll_SetWindowPlacement]
call eax
sub esp, 8
mov dword [esp + 0x68], eax
jmp 0x1000149d
mov eax, dword [esp + 0x80]
add eax, 1
cmp eax, 0x20
mov dword [esp + 0x84], eax
jne 0x1000155d
xor eax, eax
mov ecx, 0x140
mov edx, dword [esp + 0xa8]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 0x140
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], ecx
call fcn.10203de0
mov eax, esp
lea ecx, [esp + 0x120]
mov dword [eax + 4], ecx
mov dword [eax], 0x3941f4
mov eax, dword [sym.imp.KERNEL32.dll_FindNextFileA]
call eax
sub esp, 8
mov dword [esp + 0x5c], eax
xor eax, eax
xor ecx, ecx
mov edx, dword [esp + 0x98]
sub edx, 9
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], edx
je 0x100016f2
jmp 0x1000169b
mov eax, dword [esp + 0x98]
sub eax, 0x3f
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], ecx
jne 0x10001790
jmp 0x100016b9
mov dword [esp + 0xcc], 0
mov eax, esp
mov ecx, dword [esp + 0xb8]
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
sub esp, 0x10
mov dword [esp + 0x44], eax
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 [esp + 0x40], eax
call ecx
sub esp, 0xc
mov dword [esp + 0x3c], eax
mov word [esp + 0xd2], 6
mov dword [esp + 0xd4], 0xc74
mov eax, esp
lea ecx, [esp + 0xd4]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0xbc]
mov edx, dword [ecx]
mov dword [eax + 0xc], edx
lea edx, [esp + 0xd2]
mov dword [eax + 4], edx
mov dword [eax + 8], 0xa6
mov dword [eax], 0xe63f14
mov eax, dword [sym.imp.KERNEL32.dll_ReadConsoleOutputAttribute]
call eax
sub esp, 0x14
mov dword [esp + 0x38], eax
jmp 0x10001875
mov eax, dword [esp + 0x48]
mov ecx, esp
mov dword [ecx], 3
mov ecx, dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
mov dword [esp + 0x34], eax
call ecx
sub esp, 4
mov dword [esp + 0x118], 0x3a6
mov ecx, esp
lea edx, [esp + 0x118]
mov dword [ecx + 0x10], edx
mov dword [ecx + 0xc], edx
mov dword [ecx + 8], edx
mov dword [ecx + 4], edx
mov dword [ecx], 0xf4ca38
mov ecx, dword [sym.imp.KERNEL32.dll_GetNamedPipeInfo]
mov dword [esp + 0x30], eax
call ecx
sub esp, 0x14
mov ecx, esp
mov dword [ecx + 4], 0x907
mov dword [ecx], 0xa2cb6e
mov ecx, dword [sym.imp.GDI32.dll_ResizePalette]
mov dword [esp + 0x2c], eax
call ecx
sub esp, 8
xor ecx, ecx
mov edx, 0x24
mov esi, dword [esp + 0xac]
mov dword [esp], esi
mov dword [esp + 4], 0
mov dword [esp + 8], 0x24
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
call fcn.10203de0
mov eax, esp
lea ecx, [esp + 0xf0]
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
sub esp, 4
mov ecx, dword [esp + 0x34]
add ecx, 1
cmp ecx, 0xa
mov dword [esp + 0x1c], eax
mov dword [esp + 0x48], ecx
jne 0x10001790
mov eax, dword [esp + 0x98]
add eax, 1
mov ecx, esp
mov dword [ecx + 0xc], 0x6d7
mov dword [ecx + 8], 0x72e
mov dword [ecx + 4], 0x72e
mov dword [ecx], 0x72e
mov ecx, dword [sym.imp.GDI32.dll_CreateRectRgn]
mov dword [esp + 0x18], eax
call ecx
sub esp, 0x10
mov ecx, dword [esp + 0x18]
cmp ecx, 0xbc
mov dword [esp + 0x14], eax
mov dword [esp + 0xa0], ecx
jne 0x100014c2
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret