Function at 0x1001d260
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003b058
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push esi
push edi
mov dword [ebp - 0x70], ecx
mov ecx, dword [ebp - 0x70]
call fcn.1001f540
mov dword [ebp - 4], 0
push 0x2000
mov ecx, dword [ebp - 0x70]
add ecx, 0x7c
call fcn.1001f5c0
mov byte [ebp - 4], 1
push 0x2000
mov ecx, dword [ebp - 0x70]
add ecx, 0xc8
call fcn.1001f5c0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x70]
add ecx, 0x114
call fcn.10003370
mov eax, dword [ebp - 0x70]
mov dword [eax], 0x1003ceb0
push 0xffffffffffffffff
push 0
mov ecx, dword [ebp - 0x70]
call fcn.100044ae
mov ecx, dword [ebp - 0x70]
mov dword [ecx + 0x68], eax
push 0xffffffffffffffff
push 0
mov ecx, dword [ebp - 0x70]
call fcn.1001dde9
mov edx, dword [ebp - 0x70]
mov dword [edx + 0x54], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
call fcn.1001f9d0
mov byte [ebp - 4], 3
push 0x10047f0c
push 4
push 0
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x24]
call fcn.1001faa0
mov dword [ebp - 0x74], eax
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x78], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x78]
push eax
call fcn.10022b50
add esp, 8
mov byte [ebp - 0x3c], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4c]
call fcn.10017920
mov ecx, dword [ebp - 0x3c]
and ecx, 0xff
test ecx, ecx
je 0x1001d389
mov edx, dword [0x1003ceac]
push edx
push 4
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x24]
call fcn.1001faa0
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x80], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x80]
push edx
lea ecx, [ebp - 0x24]
call fcn.1001fa10
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x5c]
call fcn.10017920
push 0
lea ecx, [ebp - 0x24]
call fcn.1001fa30
movsx eax, byte [eax]
push eax
call fcn.1002602a
add esp, 4
cmp eax, 0x43
jne 0x1001d43f
push 1
lea ecx, [ebp - 0x24]
call fcn.1001fa30
movsx ecx, byte [eax]
push ecx
call fcn.10032c7b
add esp, 4
cmp eax, 0x4f
jne 0x1001d43f
push 2
lea ecx, [ebp - 0x24]
call fcn.1001fa30
movsx edx, byte [eax]
push edx
call fcn.1002602a
add esp, 4
cmp eax, 0x4d
jne 0x1001d43f
mov eax, dword [0x1003ceac]
push eax
push 3
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x24]
call fcn.1001faa0
mov dword [ebp - 0x84], eax
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x88], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x88]
push eax
lea ecx, [ebp - 0x24]
call fcn.1001fa10
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x6c]
call fcn.10017920
lea ecx, [ebp - 0x24]
call fcn.1001fa70
push eax
call fcn.10026b9d
add esp, 4
sub eax, 1
mov ecx, dword [ebp - 0x70]
mov dword [ecx + 4], eax
jmp 0x1001d449
mov edx, dword [ebp - 0x70]
mov dword [edx + 4], 0xffffffff
push 0
push 0x40000000
push 3
push 0
push 0
push 0xc0000000
mov ecx, dword [ebp + 8]
call fcn.1001fa70
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 0x70]
mov dword [ecx + 0x60], eax
mov ecx, dword [ebp + 8]
call fcn.1001fa70
push eax
mov edx, dword [ebp - 0x70]
mov eax, dword [edx + 0x60]
push eax
push str._Win32CreateFile_m_hPort__d___s_
push 3
call fcn.10003dfe
add esp, 0x10
mov ecx, dword [ebp - 0x70]
cmp dword [ecx + 0x60], 0xffffffff
je 0x1001d6b2
mov edx, dword [ebp - 0x70]
mov dword [edx + 0x130], 0
mov eax, dword [ebp - 0x70]
mov dword [eax + 0x64], 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x70]
call fcn.1001e92e
mov esi, dword [ebp - 0x70]
add esi, 0x2c
mov edi, dword [ebp - 0x70]
add edi, 8
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x70]
mov eax, dword [edx + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
push 0x2000
push 0x2000
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx + 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_SetupComm]
mov eax, dword [ebp - 0x70]
mov dword [eax + 0x50], 0
push 0xf
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx + 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov eax, dword [ebp - 0x70]
mov dword [eax + 0x3c], 1
mov ecx, dword [ebp - 0x70]
mov dword [ecx + 0x40], 1
mov edx, dword [ebp - 0x70]
mov dword [edx + 0x44], 0
mov eax, dword [ebp - 0x70]
mov dword [eax + 0x48], 0
mov ecx, dword [ebp - 0x70]
mov dword [ecx + 0x4c], 0
mov edx, dword [ebp + 0x2c]
push edx
mov eax, dword [ebp + 0x28]
push eax
mov ecx, dword [ebp + 0x24]
push ecx
mov edx, dword [ebp + 0x20]
push edx
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
movsx eax, byte [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x70]
add ecx, 0x2c
call fcn.10004bd7
mov ecx, dword [ebp - 0x70]
call fcn.1001e718
mov edx, dword [ebp - 0x70]
mov dword [edx + 0x50], eax
mov eax, dword [ebp - 0x70]
cmp dword [eax + 0x50], 0
je 0x1001d5cf
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx + 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x70]
mov dword [eax + 0x60], 0xffffffff
jmp 0x1001d6b0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 0x70]
mov dword [ecx + 0x13c], eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edx, dword [ebp - 0x70]
mov dword [edx + 0x138], eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 0x70]
mov dword [ecx + 0x140], eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edx, dword [ebp - 0x70]
mov dword [edx + 0x144], eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 0x70]
mov dword [ecx + 0x148], eax
lea edx, [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp - 0x70]
push eax
push 0x1001eb34
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x70]
mov dword [ecx + 0x78], eax
mov edx, dword [ebp - 0x70]
cmp dword [edx + 0x78], 0xffffffff
jne 0x1001d682
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InputThread_Create_Fail__ld_
push 3
call fcn.10003dfe
add esp, 0xc
jmp 0x1001d691
push 0xf
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea edx, [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp - 0x70]
push eax
push 0x1001eea7
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x70]
mov dword [ecx + 0x74], eax
jmp 0x1001d6ba
mov ecx, dword [ebp - 0x70]
call fcn.1001ead3
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.10017920
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x28