Function at 0x414c40
Capabilities:
Create thread

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
push edi
push 0x1810
mov byte [esp + 0x17], 0
call fcn.0046110e
mov edi, eax
add esp, 4
test edi, edi
jne 0x414c69
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
push 0x1810
push 0
push edi
call fcn.00465660
add esp, 0xc
push 0
call fcn.004627c3
add esp, 4
push eax
call fcn.00463379
add esp, 4
call fcn.0046338b
cdq
mov ecx, 0xa
idiv ecx
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0
mov dword [esp + 0x44], edx
call esi
mov dword [edi], eax
test eax, eax
je 0x414c5f
push 0
push 0
push 0
push 0
call esi
mov dword [edi + 0xc], eax
test eax, eax
je 0x414c5f
xor ebx, ebx
lea ebp, [edi + 4]
lea esi, [edi + 8]
mov edx, dword [edi]
lea ecx, [esi - 8]
mov dword [ecx], edx
mov eax, dword [edi + 0xc]
mov edx, dword [esp + 0x34]
mov dword [esi + 4], eax
lea eax, [edi + 0x10]
mov dword [esi + 0xc], eax
lea eax, [ebx + edx]
mov dword [esi], ebp
cdq
mov ebp, 0x6e
idiv ebp
push ecx
push 0
push 0x414b20
mov dword [esi + 0x14], edx
call fcn.004632c0
lea ebp, [edi + 4]
add esp, 0xc
cmp byte [ebp], 1
jne 0x414d12
cmp byte [edi + 0x10], 1
je 0x414d23
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
add esi, 0x38
cmp ebx, 0x6e
jl 0x414ccc
push 0x2710
xor esi, esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov eax, dword [edi]
push 1
lea edx, [esp + 0x48]
mov dword [esp + 0x48], eax
mov ecx, dword [edi + 0xc]
push edx
push 2
mov dword [esp + 0x54], ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor ecx, ecx
xor ebp, ebp
xor ebx, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
xor edx, edx
mov dword [esp + 0x38], ecx
lea eax, [edi + 0x20]
cmp dword [eax - 8], 0
je 0x414dad
test edx, edx
jne 0x414dbc
mov edx, dword [eax + 0xc]
mov esi, dword [eax]
mov ebp, dword [eax + 4]
mov ebx, dword [eax + 8]
mov dword [esp + 0x14], edx
mov edx, dword [eax + 0x10]
mov dword [esp + 0x18], edx
mov edx, dword [eax + 0x14]
mov dword [esp + 0x1c], edx
mov edx, 1
inc ecx
add eax, 0x38
cmp ecx, 0x6e
jl 0x414d81
mov eax, dword [esp + 0x38]
jmp 0x414df8
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [edi + eax*8 + 0x20]
lea eax, [edi + eax*8]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 0x24]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 0x28]
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 0x2c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 0x30]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
mov eax, 1
test edx, edx
je 0x414f2a
test eax, eax
je 0x414efe
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push 0xffffffffffffffff
push ecx
push edx
push eax
push ebx
push ebp
push esi
lea ecx, [esp + 0x54]
call fcn.004131c0
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push 0xffffffffffffffff
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
push eax
lea ecx, [esp + 0x64]
call fcn.004131c0
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x3c]
sbb eax, dword [esp + 0x4c]
mov edx, ecx
add edx, 0x3b
mov dword [esp + 0x48], edx
mov edx, eax
adc edx, 0
test edx, edx
ja 0x414f6f
jb 0x414e81
cmp dword [esp + 0x48], 0x76
ja 0x414f6f
test eax, eax
jl 0x414ec0
jg 0x414e8b
test ecx, ecx
jbe 0x414ec0
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
mov dword [ecx], esi
mov ecx, dword [esp + 0x14]
mov dword [edx], ebp
mov edx, dword [esp + 0x64]
mov dword [eax], ebx
mov eax, dword [esp + 0x18]
mov dword [edx], ecx
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x1c]
mov dword [ecx], eax
mov eax, dword [esp + 0x6c]
mov dword [eax], edx
jmp 0x414f6a
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x24]
mov dword [edx], ecx
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x28]
mov dword [ecx], eax
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x2c]
mov dword [eax], edx
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x30]
mov dword [edx], ecx
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x34]
mov dword [ecx], eax
mov eax, dword [esp + 0x6c]
mov dword [eax], edx
jmp 0x414f6a
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
mov dword [ecx], esi
mov ecx, dword [esp + 0x64]
mov dword [edx], ebp
mov edx, dword [esp + 0x14]
mov dword [eax], ebx
mov eax, dword [esp + 0x68]
mov dword [ecx], edx
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
mov eax, dword [esp + 0x1c]
jmp 0x414f64
test eax, eax
je 0x414f6f
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x5c]
mov dword [ecx], edx
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x60]
mov dword [eax], ecx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x64]
mov dword [edx], eax
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x68]
mov dword [ecx], edx
mov ecx, dword [esp + 0x30]
mov dword [eax], ecx
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x6c]
mov dword [edx], eax
mov byte [esp + 0x13], 1
push 8
call fcn.0046110e
add esp, 4
test eax, eax
je 0x414f96
push eax
push 0
push 0x414bf0
mov dword [eax + 4], 0x6e
mov dword [eax], edi
call fcn.004632c0
add esp, 0xc
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret