Function at 0x1007cff0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cfdc8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x101063e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0
test edi, edi
je 0x1007d1ff
cmp dword [ebp + 0x14], 0
je 0x1007d1ca
push 0x448
call fcn.10075b85
mov ebx, eax
add esp, 4
mov dword [ebp - 0x40], ebx
mov byte [ebp - 4], 1
test ebx, ebx
je 0x1007d154
lea eax, [ebp - 0x68]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x3c]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x1007d084
mov eax, dword [ecx]
lea edx, [ebp - 0x68]
push edx
call dword [eax]
mov dword [ebp - 0x44], eax
mov dword [ebx], esi
lea esi, [ebx + 0x420]
mov dword [ebx + 4], 0
mov dword [ebx + 0x418], 1
mov dword [ebp - 0x10], esi
mov dword [esi + 0x24], 0
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x1007d0ba
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
mov byte [ebp - 4], 5
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x1007d0c1
sub edi, ecx
mov edx, 2
sar edi, 1
xor ecx, ecx
lea esi, [edi + 1]
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10075b77
mov ecx, eax
lea eax, [esi + esi]
push eax
push 0
push ecx
mov dword [ebx + 4], ecx
call fcn.1009c500
push edi
push dword [ebp - 0x18]
push esi
push dword [ebx + 4]
call fcn.100b3a0d
push 0x410
lea esi, [ebx + 8]
push 0
push esi
call fcn.1009c500
mov eax, dword [ebp - 0x1c]
add esp, 0x2c
test eax, eax
je 0x1007d137
push 0x208
push eax
push 0x208
push esi
call fcn.100b3a0d
add esp, 0x10
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x1007d14f
mov edx, dword [ecx]
lea eax, [ebp - 0x68]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov esi, dword [ebp - 0x14]
jmp 0x1007d156
xor ebx, ebx
lea eax, [ebp - 0x34]
mov dword [ebp - 0x3c], vtable.CSimpleThread.0
push eax
push 0
push ebx
push 0x1007d230
push 0
push 0
mov dword [ebp - 0x24], 0x1007d230
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
call fcn.100a0087
add esp, 0x18
mov dword [ebp - 0x38], eax
test eax, eax
je 0x1007d1b6
lea eax, [esi + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], vtable.CSimpleThread.0
test eax, eax
je 0x1007d1fa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1007d1fa
sub esp, 0x28
mov esi, esp
mov dword [ebp - 0x10], esi
mov dword [esi + 0x24], 0
mov ecx, dword [ebp + 0x3c]
mov byte [ebp - 4], 6
test ecx, ecx
je 0x1007d1ec
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
mov ecx, dword [ebp - 0x14]
push ebx
push edi
mov byte [ebp - 4], 0
call fcn.1007d6d0
mov edi, 1
mov ecx, dword [ebp + 0x3c]
test ecx, ecx
je 0x1007d217
mov esi, dword [ecx]
lea eax, [ebp + 0x18]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x3c