Function at 0x416d30
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [ebp + 0xc]
shr eax, 0x10
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
and ecx, 0xffff
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0xc]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
test eax, eax
jne 0x417072
mov dword [ebp - 0x10], 0
jmp 0x416d74
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [0x4378dc]
jge 0x41706d
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x14
mov ecx, dword [eax + 0x479f18]
cmp ecx, dword [ebp + 0xc]
jne 0x417068
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x14
cmp dword [edx + 0x479f20], 0
jne 0x416eea
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x14
cmp dword [eax + 0x479f1c], 0
je 0x416ddd
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x14
mov edx, dword [ecx + 0x479f1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x14
mov dword [eax + 0x479f1c], 0
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x14
cmp dword [ecx + 0x479f20], 0
je 0x416e0f
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x14
mov eax, dword [edx + 0x479f20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x14
mov dword [ecx + 0x479f20], 0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x416eb5
push 0
push 4
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x14
add edx, 0x479f18
push edx
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x14
mov ecx, dword [eax + 0x479f24]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x416eab
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x14
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x479f1c], eax
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x14
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0x479f20], edx
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x14
mov ecx, dword [ebp + 8]
mov dword [eax + 0x479f28], ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x416ea1
mov eax, 1
jmp 0x4174a8
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x14
mov dword [edx + 0x479f28], 0
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x14
mov dword [eax + 0x479f1c], 0
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x14
mov dword [ecx + 0x479f20], 0
jmp 0x417068
push 0
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x14
mov eax, dword [edx + 0x479f20]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x416f15
cmp dword [ebp - 8], 0x102
je 0x417050
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x14
cmp dword [ecx + 0x479f1c], 0
je 0x416f47
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x14
mov eax, dword [edx + 0x479f1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x14
mov dword [ecx + 0x479f1c], 0
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x14
cmp dword [edx + 0x479f20], 0
je 0x416f79
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x14
mov ecx, dword [eax + 0x479f20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x14
mov dword [edx + 0x479f20], 0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x41701e
push 0
push 4
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x14
add eax, 0x479f18
push eax
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x14
mov edx, dword [ecx + 0x479f24]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x417014
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x14
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0x479f1c], ecx
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x14
mov eax, dword [ebp - 0x20]
mov dword [edx + 0x479f20], eax
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x14
mov edx, dword [ebp + 8]
mov dword [ecx + 0x479f28], edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x41700a
mov eax, 1
jmp 0x4174a8
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x14
mov dword [eax + 0x479f28], 0
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x14
mov dword [ecx + 0x479f1c], 0
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x14
mov dword [edx + 0x479f20], 0
jmp 0x417068
cmp dword [ebp - 8], 0x102
jne 0x41705b
jmp 0x417068
cmp dword [ebp - 8], 0xffffffff
jne 0x417068
xor eax, eax
jmp 0x4174a8
jmp 0x416d6b
jmp 0x4174a6
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 4]
push eax
call fcn.00408170
add esp, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x41712a
mov ecx, 1
mov word [ebp - 0x2c], cx
mov edx, 5
mov word [ebp - 0x2a], dx
push 4
lea eax, [ebp - 0x2c]
push eax
push 0x80
push 0xffff
mov ecx, dword [ebp + 8]
push ecx
call dword [0x47d180]
test eax, eax
jne 0x417123
mov edx, dword [ebp - 4]
push edx
call fcn.00408cd0
add esp, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4170db
jmp 0x41712a
mov eax, dword [ebp - 4]
push eax
call fcn.004097a0
add esp, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4170f4
jmp 0x41712a
mov dword [ebp - 0x30], 2
push 0
push 4
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0041f670
add esp, 0x10
mov eax, dword [ebp + 8]
push eax
call dword [0x47d188]
mov eax, 1
jmp 0x4174a8
xor eax, eax
jmp 0x4174a8
movzx ecx, word [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.00409350
add esp, 8
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4171aa
mov eax, 1
mov word [ebp - 0x34], ax
mov ecx, 5
mov word [ebp - 0x32], cx
push 4
lea edx, [ebp - 0x34]
push edx
push 0x80
push 0xffff
mov eax, dword [ebp + 8]
push eax
call dword [0x47d180]
test eax, eax
jne 0x4171a3
mov dword [ebp - 0x38], 3
push 0
push 4
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0041f670
add esp, 0x10
mov eax, dword [ebp + 8]
push eax
call dword [0x47d188]
mov eax, 1
jmp 0x4174a8
xor eax, eax
jmp 0x4174a8
mov dword [ebp - 0x3c], 0
jmp 0x4171bc
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x3c], 0x1d
jge 0x4174a6
mov edx, dword [ebp - 0x3c]
imul edx, edx, 0x650
mov eax, dword [edx + 0x465a28]
cmp eax, dword [ebp - 4]
jne 0x4174a1
mov ecx, dword [ebp - 0x3c]
imul ecx, ecx, 0x650
add ecx, 0x465a28
mov dword [ebp - 0x40], ecx
cmp dword [ebp - 4], 0xd
jne 0x417224
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x40]
push edx
call fcn.004174b0
add esp, 0x10
cmp eax, 1
jne 0x41721d
mov eax, 1
jmp 0x4174a8
xor eax, eax
jmp 0x4174a8
mov eax, dword [ebp - 0x40]
add eax, 0x10
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], 0
jmp 0x41723f
mov ecx, dword [ebp - 0x48]
add ecx, 1
mov dword [ebp - 0x48], ecx
cmp dword [ebp - 0x48], 0x64
jge 0x4174a1
mov edx, dword [ebp - 0x48]
shl edx, 4
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + edx]
cmp ecx, dword [ebp - 0xc]
jne 0x41749c
mov edx, dword [ebp - 0x48]
shl edx, 4
add edx, dword [ebp - 0x44]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 8], 0
jne 0x417358
mov ecx, dword [ebp - 0x4c]
cmp dword [ecx + 4], 0
je 0x417297
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x4c]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x4c]
cmp dword [edx + 8], 0
je 0x4172b7
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x4c]
mov dword [edx + 8], 0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x417335
push 0
push 4
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x41732b
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x50]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x54]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp + 8]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x417321
mov eax, 1
jmp 0x4174a8
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x4c]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 0x4c]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x4c]
mov dword [ecx + 8], 0
jmp 0x41749c
push 0
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41737d
cmp dword [ebp - 8], 0x102
je 0x41745b
mov ecx, dword [ebp - 0x4c]
cmp dword [ecx + 4], 0
je 0x41739d
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x4c]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x4c]
cmp dword [edx + 8], 0
je 0x4173bd
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x4c]
mov dword [edx + 8], 0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x41743b
push 0
push 4
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x417431
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x58]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x5c]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp + 8]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x417427
mov eax, 1
jmp 0x4174a8
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x4c]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 0x4c]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x4c]
mov dword [ecx + 8], 0
jmp 0x41749c
cmp dword [ebp - 8], 0x102
jne 0x417492
mov dword [ebp - 0x60], 4
push 0
push 4
lea edx, [ebp - 0x60]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0041f670
add esp, 0x10
mov ecx, dword [ebp + 8]
push ecx
call dword [0x47d188]
mov eax, 1
jmp 0x4174a8
cmp dword [ebp - 8], 0xffffffff
jne 0x41749c
xor eax, eax
jmp 0x4174a8
jmp 0x417236
jmp 0x4171b3
xor eax, eax
mov esp, ebp
pop ebp
ret