Function at 0x1001f140
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10092c96
mov eax, dword fs:[0]
push eax
sub esp, 0x1cc
mov eax, dword [0x100c3384]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x74], ecx
mov eax, dword [ebp - 0x74]
cmp dword [eax + 4], 0
je 0x1001f17e
xor eax, eax
jmp 0x1001f3dc
mov ecx, dword [ebp - 0x74]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 0x74]
mov dword [edx + 0xc], 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x74]
add ecx, 0x10
call fcn.1001edd0
mov ecx, dword [ebp - 0x74]
push ecx
push 0
mov edx, dword [ebp - 0x74]
push edx
push 0x1001f6d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x74]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x74]
cmp dword [edx + 4], 0
jne 0x1001f2b9
call fcn.1003eb30
mov dword [ebp - 0x78], eax
push 1
mov eax, dword [ebp - 0x78]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x78]
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 0x88], al
cmp byte [ebp - 0x88], 1
je 0x1001f1f8
jmp 0x1001f2b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x8c], eax
push 0x1009d4e8
lea ecx, [ebp - 0x40]
call fcn.10004260
mov dword [ebp - 4], 0
push 0x1009d53c
lea ecx, [ebp - 0x28]
call fcn.10004260
mov byte [ebp - 4], 1
call fcn.1003eb30
mov dword [ebp - 0x7c], eax
lea ecx, [ebp - 0x8c]
push ecx
push str.CWorkThread::Start__CreateThread_failed__errno:
push 0x4a
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x140]
call fcn.10004a60
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x94], ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x94]
call fcn.10002a60
mov ecx, eax
call fcn.1001ebd0
push eax
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x7c]
mov edx, dword [eax + 0x1c]
call edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x140]
call fcn.10005a70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10005680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10005680
xor eax, eax
jmp 0x1001f3dc
lea ecx, [ebp - 0xa8]
call fcn.1001ec70
mov eax, dword [ebp - 0x74]
cmp dword [eax + 8], 0
jne 0x1001f2e7
lea ecx, [ebp - 0xa8]
call fcn.1001f050
cmp eax, dword [ebp + 0xc]
jae 0x1001f2e7
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1001f2c4
mov ecx, dword [ebp - 0x74]
cmp dword [ecx + 8], 0
jne 0x1001f3d7
call fcn.1003eb30
mov dword [ebp - 0x80], eax
push 1
mov edx, dword [ebp - 0x80]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x80]
mov edx, dword [eax + 8]
call edx
mov byte [ebp - 0x98], al
cmp byte [ebp - 0x98], 1
je 0x1001f31f
jmp 0x1001f3d3
push 0x1009d570
lea ecx, [ebp - 0x70]
call fcn.10004260
mov dword [ebp - 4], 3
push 0x1009d5c4
lea ecx, [ebp - 0x58]
call fcn.10004260
mov byte [ebp - 4], 4
call fcn.1003eb30
mov dword [ebp - 0x84], eax
lea eax, [ebp + 0xc]
push eax
push str.CWorkThread::Start__wait_thread_running_timeout_
push 0x52
lea ecx, [ebp - 0x70]
push ecx
lea edx, [ebp - 0x58]
push edx
lea ecx, [ebp - 0x1d8]
call fcn.10004a60
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa0], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0xa0]
call fcn.10002a60
mov ecx, eax
call fcn.1001ebd0
push eax
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x84]
mov eax, dword [edx + 0x1c]
call eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1d8]
call fcn.10005a70
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
call fcn.10005680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.10005680
xor eax, eax
jmp 0x1001f3dc
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005dfd5
mov esp, ebp
pop ebp
ret 8