Function at 0x473760
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x6ddc7c]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push 0
push 0
push 1
push 0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
mov dword [edi + 4], esi
test esi, esi
jne 0x4737e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi]
mov ecx, edi
push 1
mov dword [esp + 0x14], eax
call dword [edx]
mov eax, dword fs:[0x2c]
mov ecx, dword [0x6eb97c]
mov edx, dword [eax]
cmp ecx, dword [edx + 4]
jg 0x4738ec
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0x6eb958
test eax, eax
jne 0x473939
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebx + 8], eax
mov dword [edi + 8], eax
cmp dword [ebx + 8], 0
jne 0x473840
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi]
mov ecx, edi
push 1
mov dword [esp + 0x14], eax
call dword [edx]
mov eax, dword fs:[0x2c]
mov ecx, dword [0x6eb97c]
mov edx, dword [eax]
cmp ecx, dword [edx + 4]
jg 0x473947
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0x6eb958
test eax, eax
jne 0x473994
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push 0
push edi
push 0x473a00
push dword [esp + 0x1c]
push 0
call fcn.00625a58
add esp, 0x18
mov dword [ebx + 4], eax
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4738c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi]
mov ecx, edi
push 1
mov dword [esp + 0x10], eax
call dword [edx]
test esi, esi
je 0x473889
push esi
call ebx
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 8]
test eax, eax
je 0x473897
push eax
call ebx
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x6eb97c]
cmp eax, dword [ecx + 4]
jg 0x4739a2
mov eax, dword [esp + 0xc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0x6eb958
test eax, eax
jne 0x4739ef
test esi, esi
je 0x4738d8
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call ebx
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005ff7bd
mov esp, ebp
pop ebp
ret 8
push 0x6eb97c
call fcn.005ffe54
add esp, 4
cmp dword [0x6eb97c], 0xffffffff
jne 0x4737ca
push 0x650420
mov dword [0x6eb95c], 0x6eb958
mov dword [0x6eb958], 0x6ac23c
call fcn.005ffc91
add esp, 4
push 0x6eb97c
call fcn.005ffe0a
add esp, 4
jmp 0x4737ca
mov edx, str.thread.entry_event
lea ecx, [esp + 0x10]
call fcn.0044fae0
push 0x6eb97c
call fcn.005ffe54
add esp, 4
cmp dword [0x6eb97c], 0xffffffff
jne 0x473828
push 0x650420
mov dword [0x6eb95c], 0x6eb958
mov dword [0x6eb958], 0x6ac23c
call fcn.005ffc91
add esp, 4
push 0x6eb97c
call fcn.005ffe0a
add esp, 4
jmp 0x473828
mov edx, str.thread.exit_event
lea ecx, [esp + 0x10]
call fcn.0044fae0
push 0x6eb97c
call fcn.005ffe54
add esp, 4
cmp dword [0x6eb97c], 0xffffffff
jne 0x4738b0
push 0x650420
mov dword [0x6eb95c], 0x6eb958
mov dword [0x6eb958], 0x6ac23c
call fcn.005ffc91
add esp, 4
push 0x6eb97c
call fcn.005ffe0a
add esp, 4
jmp 0x4738b0
mov edx, str.thread
lea ecx, [esp + 0x18]
call fcn.0044fae0
int3