Function at 0x505b10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6454d0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x6ae654]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0x1c
mov dword [ebp - 4], 0
call fcn.005a4b81
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
mov eax, dword [ebp + 0x10]
add esp, 4
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 8]
push 0
push 0
push 1
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 4], eax
test eax, eax
jne 0x505bed
mov eax, dword [esi]
test eax, eax
je 0x505be2
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push eax
call edi
cmp eax, 0x102
jne 0x505bd3
mov eax, dword [esi + 8]
test eax, eax
je 0x505bcd
push 0
push eax
call edi
cmp eax, 0x102
jne 0x505bcd
push dword [esi + 8]
mov dword [esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push dword [esi]
call edi
push dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x505cc3
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x505ccd
push 0
push 0
push 1
push 0
call edi
mov dword [esi + 8], eax
test eax, eax
jne 0x505c4f
mov eax, dword [esi]
test eax, eax
je 0x505cbd
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push eax
call edi
cmp eax, 0x102
jne 0x505c43
mov eax, dword [esi + 8]
test eax, eax
je 0x505c3d
push 0
push eax
call edi
cmp eax, 0x102
jne 0x505c3d
push dword [esi + 8]
mov dword [esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push dword [esi]
call edi
push dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x505cc3
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push 0x505db0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
test eax, eax
jne 0x505cf6
mov eax, dword [esi]
test eax, eax
je 0x505cbd
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push eax
call edi
cmp eax, 0x102
jne 0x505cb1
mov eax, dword [esi + 8]
test eax, eax
je 0x505cab
push 0
push eax
call edi
cmp eax, 0x102
jne 0x505cab
push dword [esi + 8]
mov dword [esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push dword [esi]
call edi
push dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x505cc3
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 4]
test eax, eax
je 0x505ccd
push eax
call edi
mov eax, dword [esi + 8]
test eax, eax
je 0x505cd7
push eax
call edi
push 0x1c
push esi
call fcn.005a4bb1
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push dword [esi + 4]
mov dword [esi], eax
mov ecx, dword [ebp - 0x14]
mov dword [esi + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
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