Function at 0x464020
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54a748
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x8870bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, 0x889264
mov ecx, ebx
call fcn.0045ff70
mov eax, ebx
or eax, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x889268]
jne 0x46407d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x464273
mov eax, dword [0x886c70]
mov edx, dword [eax + 8]
mov ecx, dword [eax + 4]
and edx, 0x7fffffff
mov eax, dword [eax]
inc ecx
cmp eax, 1
je 0x46409a
test eax, eax
jne 0x4640a0
cmp edx, ecx
jb 0x4640a2
jmp 0x4640ca
cmp edx, ecx
mov eax, dword [0x886c70]
sbb esi, esi
and esi, 8
cmp ecx, edx
jbe 0x4640b6
mov eax, dword [eax + 4]
inc eax
jmp 0x4640be
mov eax, dword [eax + 8]
and eax, 0x7fffffff
push esi
push eax
mov ecx, 0x886c70
call fcn.004089a0
mov eax, dword [0x886c70]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 4]
lea edx, [ecx + edx*4]
mov ecx, dword [ebp + 8]
mov dword [edx + eax], ecx
mov eax, dword [0x886c70]
inc dword [eax + 4]
mov eax, dword [0x886c74]
mov edx, dword [eax + 8]
mov esi, dword [eax + 4]
and edx, 0x7fffffff
mov eax, dword [eax]
inc esi
cmp eax, 1
je 0x464103
test eax, eax
jne 0x464109
cmp edx, esi
jb 0x46410b
jmp 0x464133
cmp edx, esi
mov eax, dword [0x886c74]
sbb ecx, ecx
and ecx, 8
cmp esi, edx
jbe 0x46411f
mov eax, dword [eax + 4]
inc eax
jmp 0x464127
mov eax, dword [eax + 8]
and eax, 0x7fffffff
push ecx
push eax
mov ecx, 0x886c74
call fcn.004089a0
mov eax, dword [0x886c74]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 4]
lea edx, [ecx + edx*4]
mov ecx, dword [ebp + 0xc]
mov dword [edx + eax], ecx
mov eax, dword [0x886c74]
inc dword [eax + 4]
cmp dword [0x889268], 0
jne 0x464267
cmp dword [0x88926c], 0
jne 0x464246
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x88926c], eax
mov eax, dword [0x886c70]
mov eax, dword [eax]
cmp eax, 1
je 0x4641c6
test eax, eax
je 0x4641c6
mov eax, dword [0x886c70]
mov ecx, dword [eax + 8]
and ecx, 0x7fffffff
jne 0x4641b2
push 2
push ecx
push 4
push 4
call fcn.00401560
add esp, 0x10
mov dword [0x886c70], eax
jmp 0x4641c6
push ecx
mov eax, esp
push ecx
mov ecx, 0x886c70
mov dword [eax], 0
call fcn.004089a0
mov eax, dword [0x886c70]
mov ebx, dword [0x88926c]
mov ecx, dword [eax]
mov eax, dword [0x886c70]
cmp ecx, 1
je 0x4641e1
test ecx, ecx
jne 0x4641f2
mov edx, dword [eax + 8]
mov ecx, dword [eax + 4]
and edx, 0x7fffffff
inc ecx
cmp ecx, edx
jle 0x46420f
mov edx, dword [eax + 4]
push ecx
mov eax, esp
inc edx
push edx
mov ecx, 0x886c70
mov dword [eax], 8
call fcn.004089a0
mov eax, dword [0x886c70]
mov edi, dword [eax + 0xc]
add edi, eax
mov eax, dword [eax + 4]
shl eax, 2
push eax
push edi
lea esi, [edi + 4]
push esi
call fcn.00522f40
add esp, 0xc
cmp esi, edi
je 0x464239
nop dword [eax]
sub esi, 4
mov dword [esi], ebx
cmp esi, edi
jne 0x464230
mov eax, dword [0x886c70]
mov ebx, 0x889264
inc dword [eax + 4]
push 0x889268
push 0
push 0
push 0x463b20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x464273
push dword [0x88926c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
and ebx, 0xfffffffe
mov ecx, ebx
call fcn.004604f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret