Function at 0x45cc40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5502ed
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x6f9540]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, 0x6fe934
mov ecx, esi
call fcn.0043f350
or esi, 1
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x6fe938]
jne 0x45cca2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x45ce92
mov eax, dword [0x6f6964]
mov edx, dword [eax + 8]
mov ecx, dword [eax + 4]
and edx, 0x7fffffff
mov eax, dword [eax]
inc ecx
cmp eax, 1
je 0x45ccbf
test eax, eax
jne 0x45ccc5
cmp edx, ecx
jb 0x45ccc7
jmp 0x45ccef
cmp edx, ecx
mov eax, dword [0x6f6964]
sbb esi, esi
and esi, 8
cmp ecx, edx
jbe 0x45ccdb
mov eax, dword [eax + 4]
inc eax
jmp 0x45cce3
mov eax, dword [eax + 8]
and eax, 0x7fffffff
push esi
push eax
mov ecx, 0x6f6964
call fcn.00418270
mov eax, dword [0x6f6964]
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 [0x6f6964]
inc dword [eax + 4]
mov eax, dword [0x6f6968]
mov edx, dword [eax + 8]
mov esi, dword [eax + 4]
and edx, 0x7fffffff
mov eax, dword [eax]
inc esi
cmp eax, 1
je 0x45cd28
test eax, eax
jne 0x45cd2e
cmp edx, esi
jb 0x45cd30
jmp 0x45cd58
cmp edx, esi
mov eax, dword [0x6f6968]
sbb ecx, ecx
and ecx, 8
cmp esi, edx
jbe 0x45cd44
mov eax, dword [eax + 4]
inc eax
jmp 0x45cd4c
mov eax, dword [eax + 8]
and eax, 0x7fffffff
push ecx
push eax
mov ecx, 0x6f6968
call fcn.00418270
mov eax, dword [0x6f6968]
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 [0x6f6968]
inc dword [eax + 4]
cmp dword [0x6fe938], 0
jne 0x45ce83
cmp dword [0x6fe93c], 0
jne 0x45ce62
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x6fe93c], eax
mov eax, dword [0x6f6964]
mov eax, dword [eax]
cmp eax, 1
je 0x45cdeb
test eax, eax
je 0x45cdeb
mov eax, dword [0x6f6964]
mov ecx, dword [eax + 8]
and ecx, 0x7fffffff
jne 0x45cdd7
push 2
push ecx
push 4
push 4
call fcn.00403bd0
add esp, 0x10
mov dword [0x6f6964], eax
jmp 0x45cdeb
push ecx
mov eax, esp
push ecx
mov ecx, 0x6f6964
mov dword [eax], 0
call fcn.00418270
mov eax, dword [0x6f6964]
mov ebx, dword [0x6fe93c]
mov ecx, dword [eax]
mov eax, dword [0x6f6964]
cmp ecx, 1
je 0x45ce06
test ecx, ecx
jne 0x45ce17
mov edx, dword [eax + 8]
mov ecx, dword [eax + 4]
and edx, 0x7fffffff
inc ecx
cmp ecx, edx
jle 0x45ce34
mov ecx, dword [eax + 4]
inc ecx
push ecx
mov eax, esp
push ecx
mov ecx, 0x6f6964
mov dword [eax], 8
call fcn.00418270
mov eax, dword [0x6f6964]
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.00526450
add esp, 0xc
cmp esi, edi
je 0x45ce5a
sub esi, 4
mov dword [esi], ebx
cmp esi, edi
jne 0x45ce51
mov eax, dword [0x6f6964]
inc dword [eax + 4]
push 0x6fe938
push 0
push 0
push 0x45c790
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x45ce8f
push dword [0x6fe93c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp - 0x10]
test al, 1
je 0x45cea0
and eax, 0xfffffffe
mov ecx, eax
call fcn.0043f800
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret