Function at 0x1010070
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x104deb4]
and eax, 0x10
jne 0x101010f
push 0
push 0
push 0
push 0x1027080
push 0x80000
push 0
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10100b1
xor eax, eax
jmp 0x1010379
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x10100c8
xor eax, eax
jmp 0x1010379
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0
push 0xfa
mov eax, dword [0x104e78c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x101010d
push 0
mov ecx, dword [0x104e760]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x101010b
xor eax, eax
jmp 0x1010379
jmp 0x10100d9
jmp 0x1010125
push 0x1001bc8
push 0x177
push 0
push 2
call fcn.01028fb0
add esp, 0x10
mov edx, dword [0x104deb4]
and edx, 1
jne 0x1010182
push 0
push 0
push 0
push 0x10329f0
push 0
push 0
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1010158
xor eax, eax
jmp 0x1010379
push 2
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x101016f
xor eax, eax
jmp 0x1010379
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], 0
jmp 0x1010198
push 0x1001ba0
push 0x177
push 0
push 2
call fcn.01028fb0
add esp, 0x10
mov edx, dword [0x104deb4]
and edx, 2
jne 0x10101f5
push 0
push 0
push 0
push 0x1012770
push 0
push 0
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10101cb
xor eax, eax
jmp 0x1010379
push 2
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x10101e2
xor eax, eax
jmp 0x1010379
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xc], 0
jmp 0x101020b
push 0x1001b88
push 0x177
push 0
push 2
call fcn.01028fb0
add esp, 0x10
mov edx, dword [0x104deb4]
and edx, 4
jne 0x1010268
push 0
push 0
push 0
push 0x102d360
push 0
push 0
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x101023e
xor eax, eax
jmp 0x1010379
push 2
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x1010255
xor eax, eax
jmp 0x1010379
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], 0
jmp 0x101027e
push 0x1001b58
push 0x177
push 0
push 2
call fcn.01028fb0
add esp, 0x10
mov edx, dword [0x104deb4]
and edx, 8
jne 0x10102db
push 0
push 0
push 0
push 0x10198b0
push 0
push 0
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x10102b1
xor eax, eax
jmp 0x1010379
push 1
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x10102c8
xor eax, eax
jmp 0x1010379
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
jmp 0x10102f1
push 0x1001b38
push 0x177
push 0
push 2
call fcn.01028fb0
add esp, 0x10
mov edx, dword [0x104deb4]
and edx, 0x20
jne 0x1010348
push 0
push 0
push 0
push 0x103b5a0
push 0
push 0
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1010321
xor eax, eax
jmp 0x1010379
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x1010335
xor eax, eax
jmp 0x1010379
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0
jmp 0x1010359
push 0x18c
push 0
push 2
call fcn.01028fb0
add esp, 0xc
mov edx, dword [0x104deb4]
and edx, 4
je 0x1010374
push 0
push 0
push 0
push 4
call fcn.010319b0
add esp, 0x10
mov eax, 1
mov esp, ebp
pop ebp
ret