Function at 0x10007ca0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10069cb0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push esi
mov eax, dword [0x1007f1e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x3c], 0
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x58]
call fcn.10007490
movzx edx, al
test edx, edx
jne 0x10007cee
xor al, al
jmp 0x10007ee9
mov eax, dword [ebp - 0x3c]
xor edx, edx
div dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x3c]
xor edx, edx
div dword [ebp + 0x10]
add edx, dword [ebp - 0x30]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10008030
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.100020b0
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x40], 0
jmp 0x10007d3f
mov ecx, dword [ebp - 0x40]
add ecx, 1
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
cmp edx, dword [ebp + 0x10]
jge 0x10007dee
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + eax - 1]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp + 0x10]
sub eax, 1
cmp dword [ebp - 0x40], eax
jne 0x10007d70
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
lea eax, [edx + ecx - 1]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x40]
push edx
lea ecx, [ebp - 0x2c]
call fcn.100080e0
add eax, 4
mov ecx, eax
call fcn.1000ac50
mov eax, dword [ebp - 0x40]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100080e0
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x20], ecx
mov edx, dword [ebp - 0x40]
push edx
lea ecx, [ebp - 0x2c]
call fcn.100080e0
mov ecx, dword [ebp - 0x44]
mov dword [eax + 0x24], ecx
push 0
push 0
mov edx, dword [ebp - 0x40]
push edx
lea ecx, [ebp - 0x2c]
call fcn.100080e0
push eax
push 0x10007f00
push 0
push 0
call fcn.1004e968
add esp, 0x18
mov esi, eax
mov eax, dword [ebp - 0x40]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100080e0
mov dword [eax], esi
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x30]
mov dword [ebp - 0x14], ecx
jmp 0x10007d36
mov byte [ebp - 0x35], 1
mov dword [ebp - 0x48], 0
jmp 0x10007e04
mov edx, dword [ebp - 0x48]
add edx, 1
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp + 0x10]
jge 0x10007e67
mov ecx, dword [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.100080e0
mov edx, dword [eax]
mov dword [ebp - 0x4c], edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx edx, byte [ebp - 0x35]
test edx, edx
je 0x10007e58
mov eax, dword [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100080e0
movzx ecx, byte [eax + 0x30]
test ecx, ecx
je 0x10007e58
mov dword [ebp - 0x5c], 1
jmp 0x10007e5f
mov dword [ebp - 0x5c], 0
mov dl, byte [ebp - 0x5c]
mov byte [ebp - 0x35], dl
jmp 0x10007dfb
movzx eax, byte [ebp - 0x35]
test eax, eax
jne 0x10007e93
mov byte [ebp - 0x51], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.100020d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.100080c0
mov al, byte [ebp - 0x51]
jmp 0x10007ee9
mov dword [ebp - 0x50], 0
jmp 0x10007ea5
mov ecx, dword [ebp - 0x50]
add ecx, 1
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
cmp edx, dword [ebp + 0x10]
jge 0x10007ec7
mov eax, dword [ebp - 0x50]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100080e0
add eax, 0x28
push eax
mov ecx, dword [ebp + 0xc]
call fcn.100073b0
jmp 0x10007e9c
mov byte [ebp - 0x52], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.100020d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.100080c0
mov al, byte [ebp - 0x52]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc