Function at 0x416dd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59dd28
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x61de38]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ebx, [edi + 0xc4]
mov dword [ebp - 4], 0
mov ecx, ebx
mov dword [ebp - 0x14], ebx
call fcn.00414ff0
mov dword [ebp - 0x18], ebx
call fcn.00416a70
mov esi, eax
lea ebx, [esi + 0x20]
mov ecx, ebx
call fcn.00414ff0
mov esi, dword [esi + 4]
test ebx, ebx
je 0x416e33
mov ecx, ebx
call fcn.00415060
cmp esi, 0xffffffff
jne 0x416ec4
call fcn.00416a70
mov ebx, eax
lea esi, [ebx + 0x20]
mov ecx, esi
call fcn.00414ff0
mov eax, dword [ebx + 4]
mov dword [ebp - 0x10], eax
test esi, esi
je 0x416e61
mov ecx, esi
call fcn.00415060
mov eax, dword [ebp - 0x10]
cmp eax, 0xffffffff
jne 0x416ec4
mov ecx, esi
call fcn.00414ff0
cmp dword [ebx + 4], 0xffffffff
jne 0x416eb9
cmp dword [ebx + 8], 0
jne 0x416e84
mov ecx, ebx
call fcn.00415160
test eax, eax
je 0x416eb9
lea eax, [ebp - 0x10]
mov dword [ebx + 0x14], 0x417420
push eax
push 0
push ebx
push 0x415310
push 0
push 0
mov dword [ebx + 0x18], ebx
mov dword [ebx + 0x1c], 0x64
call fcn.005680d2
add esp, 0x18
mov dword [ebx + 4], eax
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test esi, esi
je 0x416ec4
mov ecx, esi
call fcn.00415060
mov ebx, dword [ebp + 0xc]
cmp dword [edi + 0x70], ebx
jae 0x416fe6
lea esi, [edi + 0xa8]
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.00414ff0
mov eax, dword [edi + 0x84]
lea ecx, [ebx + ebx]
mov dword [ebp - 0x10], esi
mov dword [ebp + 0xc], eax
cmp eax, ecx
ja 0x417047
mov dword [ebp - 0x28], vtable.awy::Memory.0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00413440
lea eax, [ebx + ebx]
push eax
mov dword [ebp - 0x20], eax
call fcn.0041a8fe
push 4
mov dword [ebp - 0x24], eax
call fcn.0041a8c1
mov dword [ebp - 0x1c], eax
add esp, 8
mov dword [eax], 0
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x417047
push dword [ebp + 0xc]
lea ecx, [edi + 0x24]
push eax
call fcn.00417ff0
mov eax, dword [edi + 0x68]
lea ecx, [edi + 0x68]
call dword [eax + 8]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
mov dword [edi + 0x6c], eax
mov eax, dword [ebp - 0x20]
mov dword [edi + 0x70], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x74], ecx
inc dword [ecx]
mov ecx, dword [edi + 0x6c]
mov dword [edi + 0x84], eax
add eax, ecx
mov dword [edi + 0x7c], eax
mov dword [edi + 0x78], ecx
mov eax, dword [edi + 0x70]
add eax, ecx
mov dword [ebp - 0x28], vtable.awy::Memory.0
mov dword [edi + 0x80], eax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x416fd3
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
jne 0x416fb5
push eax
call fcn.0041a8f9
add esp, 4
jmp 0x416fd3
mov eax, dword [ecx]
test eax, eax
je 0x416fc0
dec eax
mov dword [ecx], eax
jmp 0x416fd3
push 4
push ecx
call fcn.0055c9a5
push dword [ebp - 0x24]
call fcn.0041a8f9
add esp, 0xc
lea ecx, [edi + 0xa8]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x416fe6
call fcn.00415060
mov ecx, dword [edi + 0x70]
mov eax, ecx
mov edx, dword [edi + 0x84]
sub eax, edx
cmp eax, ebx
jae 0x41700f
mov ecx, edi
call fcn.004170b0
mov ecx, dword [edi + 0x70]
mov eax, ecx
mov edx, dword [edi + 0x84]
sub eax, edx
cmp eax, ebx
jb 0x416ff7
sub ecx, edx
mov esi, ebx
cmp ebx, ecx
ja 0x417087
mov eax, dword [edi + 0x80]
mov ecx, dword [edi + 0x7c]
sub eax, ecx
mov dword [ebp + 0xc], eax
cmp eax, ebx
jae 0x417056
push eax
push dword [ebp + 8]
push ecx
call fcn.0055e7e0
mov edx, dword [ebp + 8]
add esp, 0xc
mov ecx, dword [edi + 0x6c]
sub esi, dword [ebp + 0xc]
add edx, dword [ebp + 0xc]
mov dword [edi + 0x7c], ecx
jmp 0x417059
test esi, esi
je 0x417052
mov ecx, esi
call fcn.00415060
xor esi, esi
jmp 0x41708c
mov edx, dword [ebp + 8]
test esi, esi
je 0x41706b
push esi
push edx
push ecx
call fcn.0055e7e0
add esp, 0xc
add dword [edi + 0x7c], esi
lea ecx, [edi + 0x88]
call fcn.00414ff0
add dword [edi + 0x84], ebx
lea ecx, [edi + 0x88]
call fcn.00415060
mov esi, 1
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x417098
call fcn.00415060
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8