Function at 0x45ca00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55017d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x6fb4c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, 0x7008b4
mov ecx, esi
call fcn.0043f110
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 [0x7008b8]
jne 0x45ca62
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x45cc52
mov eax, dword [0x6f88d0]
mov edx, dword [eax + 8]
mov ecx, dword [eax + 4]
and edx, 0x7fffffff
mov eax, dword [eax]
inc ecx
cmp eax, 1
je 0x45ca7f
test eax, eax
jne 0x45ca85
cmp edx, ecx
jb 0x45ca87
jmp 0x45caaf
cmp edx, ecx
mov eax, dword [0x6f88d0]
sbb esi, esi
and esi, 8
cmp ecx, edx
jbe 0x45ca9b
mov eax, dword [eax + 4]
inc eax
jmp 0x45caa3
mov eax, dword [eax + 8]
and eax, 0x7fffffff
push esi
push eax
mov ecx, 0x6f88d0
call fcn.00417c90
mov eax, dword [0x6f88d0]
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 [0x6f88d0]
inc dword [eax + 4]
mov eax, dword [0x6f88d4]
mov edx, dword [eax + 8]
mov esi, dword [eax + 4]
and edx, 0x7fffffff
mov eax, dword [eax]
inc esi
cmp eax, 1
je 0x45cae8
test eax, eax
jne 0x45caee
cmp edx, esi
jb 0x45caf0
jmp 0x45cb18
cmp edx, esi
mov eax, dword [0x6f88d4]
sbb ecx, ecx
and ecx, 8
cmp esi, edx
jbe 0x45cb04
mov eax, dword [eax + 4]
inc eax
jmp 0x45cb0c
mov eax, dword [eax + 8]
and eax, 0x7fffffff
push ecx
push eax
mov ecx, 0x6f88d4
call fcn.00417c90
mov eax, dword [0x6f88d4]
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 [0x6f88d4]
inc dword [eax + 4]
cmp dword [0x7008b8], 0
jne 0x45cc43
cmp dword [0x7008bc], 0
jne 0x45cc22
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x7008bc], eax
mov eax, dword [0x6f88d0]
mov eax, dword [eax]
cmp eax, 1
je 0x45cbab
test eax, eax
je 0x45cbab
mov eax, dword [0x6f88d0]
mov ecx, dword [eax + 8]
and ecx, 0x7fffffff
jne 0x45cb97
push 2
push ecx
push 4
push 4
call fcn.00403540
add esp, 0x10
mov dword [0x6f88d0], eax
jmp 0x45cbab
push ecx
mov eax, esp
push ecx
mov ecx, 0x6f88d0
mov dword [eax], 0
call fcn.00417c90
mov eax, dword [0x6f88d0]
mov ebx, dword [0x7008bc]
mov ecx, dword [eax]
mov eax, dword [0x6f88d0]
cmp ecx, 1
je 0x45cbc6
test ecx, ecx
jne 0x45cbd7
mov edx, dword [eax + 8]
mov ecx, dword [eax + 4]
and edx, 0x7fffffff
inc ecx
cmp ecx, edx
jle 0x45cbf4
mov ecx, dword [eax + 4]
inc ecx
push ecx
mov eax, esp
push ecx
mov ecx, 0x6f88d0
mov dword [eax], 8
call fcn.00417c90
mov eax, dword [0x6f88d0]
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.00526230
add esp, 0xc
cmp esi, edi
je 0x45cc1a
sub esi, 4
mov dword [esi], ebx
cmp esi, edi
jne 0x45cc11
mov eax, dword [0x6f88d0]
inc dword [eax + 4]
push 0x7008b8
push 0
push 0
push 0x45c550
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x45cc4f
push dword [0x7008bc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp - 0x10]
test al, 1
je 0x45cc60
and eax, 0xfffffffe
mov ecx, eax
call fcn.0043f5c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret