Function at 0x470c40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x6a8c7c]
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 0x470cc2
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 [0x6b42fc]
mov edx, dword [eax]
cmp ecx, dword [edx + 4]
jg 0x470dcc
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0x6b42d8
test eax, eax
jne 0x470e19
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 0x470d20
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 [0x6b42fc]
mov edx, dword [eax]
cmp ecx, dword [edx + 4]
jg 0x470e27
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0x6b42d8
test eax, eax
jne 0x470e74
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push 0
push edi
push 0x470ee0
push dword [esp + 0x1c]
push 0
call fcn.005fbae8
add esp, 0x18
mov dword [ebx + 4], eax
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x470da8
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 0x470d69
push esi
call ebx
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 8]
test eax, eax
je 0x470d77
push eax
call ebx
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x6b42fc]
cmp eax, dword [ecx + 4]
jg 0x470e82
mov eax, dword [esp + 0xc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0x6b42d8
test eax, eax
jne 0x470ecf
test esi, esi
je 0x470db8
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.005d584c
mov esp, ebp
pop ebp
ret 8
push 0x6b42fc
call fcn.005d5ee3
add esp, 4
cmp dword [0x6b42fc], 0xffffffff
jne 0x470caa
push 0x622520
mov dword [0x6b42dc], 0x6b42d8
mov dword [0x6b42d8], 0x67e1ec
call fcn.005d5d20
add esp, 4
push 0x6b42fc
call fcn.005d5e99
add esp, 4
jmp 0x470caa
mov edx, str.thread.entry_event
lea ecx, [esp + 0x10]
call fcn.0044faf0
push 0x6b42fc
call fcn.005d5ee3
add esp, 4
cmp dword [0x6b42fc], 0xffffffff
jne 0x470d08
push 0x622520
mov dword [0x6b42dc], 0x6b42d8
mov dword [0x6b42d8], 0x67e1ec
call fcn.005d5d20
add esp, 4
push 0x6b42fc
call fcn.005d5e99
add esp, 4
jmp 0x470d08
mov edx, str.thread.exit_event
lea ecx, [esp + 0x10]
call fcn.0044faf0
push 0x6b42fc
call fcn.005d5ee3
add esp, 4
cmp dword [0x6b42fc], 0xffffffff
jne 0x470d90
push 0x622520
mov dword [0x6b42dc], 0x6b42d8
mov dword [0x6b42d8], 0x67e1ec
call fcn.005d5d20
add esp, 4
push 0x6b42fc
call fcn.005d5e99
add esp, 4
jmp 0x470d90
mov edx, str.thread
lea ecx, [esp + 0x18]
call fcn.0044faf0
int3