Function at 0x1000139f
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 + 0x278]
lea edi, [esp + 0xec]
lea ebx, [esp + 0x270]
mov dword [esp], esi
mov dword [esp + 4], 0
mov dword [esp + 8], 0x18
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xbc], edx
mov dword [esp + 0xb8], edi
mov dword [esp + 0xb4], ebx
call fcn.102220c0
mov eax, esp
lea ecx, [esp + 0x278]
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 + 0xb0], eax
call ecx
sub esp, 8
xor ecx, ecx
lea edx, [esp + 0xc8]
lea esi, [esp + 0x128]
lea edi, [esp + 0xf8]
mov dword [esp + 0xac], eax
mov dword [esp + 0xa8], edx
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa0], edi
mov dword [esp + 0x9c], ecx
jmp 0x10001520
mov eax, dword [esp + 0x98]
mov ecx, 0xf0f0f0f1
mov dword [esp + 0x94], eax
mul ecx
shr edx, 4
imul eax, edx, 0x11
mov ecx, dword [esp + 0x94]
sub ecx, eax
mov eax, ecx
sub eax, 5
mov dword [esp + 0x90], ecx
mov dword [esp + 0x8c], eax
je 0x100015b7
jmp 0x10001504
mov eax, dword [esp + 0x90]
sub eax, 0xb
mov dword [esp + 0x88], eax
je 0x1000161e
jmp 0x1000163d
mov eax, dword [esp + 0x9c]
mov ecx, esp
mov dword [ecx], 0x5c4908
mov ecx, dword [sym.imp.USER32.dll_IsWindowVisible]
mov dword [esp + 0x84], eax
call ecx
sub esp, 4
mov ecx, esp
mov dword [ecx], 0x7b3af3
mov ecx, dword [sym.imp.KERNEL32.dll_SuspendThread]
mov dword [esp + 0x80], eax
call ecx
sub esp, 4
mov dword [esp + 0x274], 0x86c
mov ecx, esp
lea edx, [esp + 0x274]
mov dword [ecx + 4], edx
mov dword [ecx], 0xdd3f54
mov ecx, dword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
mov dword [esp + 0x7c], 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 + 0x78], eax
call ecx
sub esp, 8
xor ecx, ecx
mov dword [esp + 0x74], eax
mov dword [esp + 0x98], ecx
jmp 0x100014c5
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 + 0xa0]
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.102220c0
mov eax, esp
lea ecx, [esp + 0xf8]
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
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 + 0x64], eax
jmp 0x1000163d
mov eax, dword [esp + 0x94]
add eax, 1
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x60]
cmp eax, 0x20
mov dword [esp + 0x98], eax
jne 0x100014c5
xor eax, eax
mov ecx, esp
mov edx, dword [esp + 0xa4]
mov dword [ecx], edx
mov dword [ecx + 8], 0x140
mov dword [ecx + 4], 0
mov dword [esp + 0x5c], eax
call fcn.102220c0
mov eax, esp
lea ecx, [esp + 0x128]
mov dword [eax + 4], ecx
mov dword [eax], 0x3941f4
mov eax, dword [sym.imp.KERNEL32.dll_FindNextFileA]
call eax
sub esp, 8
xor ecx, ecx
mov edx, dword [esp + 0x84]
sub edx, 9
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], edx
je 0x10001716
jmp 0x100016bf
mov eax, dword [esp + 0x84]
sub eax, 0x3f
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], ecx
jne 0x100017b5
jmp 0x100016dd
mov dword [esp + 0x270], 0
mov eax, esp
mov ecx, dword [esp + 0xb4]
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 word [esp + 0xf6], 6
mov dword [esp + 0x26c], 0xc74
mov ecx, esp
lea edx, [esp + 0x26c]
mov dword [ecx + 0x10], edx
mov edx, dword [esp + 0xb8]
mov esi, dword [edx]
mov dword [ecx + 0xc], esi
lea esi, [esp + 0xf6]
mov dword [ecx + 4], esi
mov dword [ecx + 8], 0xa6
mov dword [ecx], 0xe63f14
mov ecx, dword [sym.imp.KERNEL32.dll_ReadConsoleOutputAttribute]
mov dword [esp + 0x3c], eax
call ecx
sub esp, 0x14
mov dword [esp + 0x38], eax
jmp 0x10001899
mov eax, dword [esp + 0x48]
add eax, 1
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 + 0xf0], 0x3a6
mov ecx, esp
lea edx, [esp + 0xf0]
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 + 0xa8]
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.102220c0
mov eax, esp
lea ecx, [esp + 0xc8]
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]
cmp ecx, 0xa
mov dword [esp + 0x1c], eax
mov dword [esp + 0x48], ecx
jne 0x100017b5
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
sub esp, 0x10
mov ecx, dword [esp + 0x84]
add ecx, 1
cmp ecx, 0xbc
mov dword [esp + 0x18], eax
mov dword [esp + 0x9c], ecx
jne 0x10001520
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret