Function at 0x456d10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x4dc1bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], 0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x24]
mov dword [eax + 4], ecx
cmp dword [ebp - 0x24], 0
jne 0x456dac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x44], eax
mov edx, dword [ebp + 8]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x456d78
push 1
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x40], eax
jmp 0x456d7f
mov dword [ebp - 0x40], 0
push 8
lea ecx, [ebp - 0x10]
call fcn.00402c30
call fcn.0040e610
push eax
mov ecx, dword [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0040d850
push str.thread.entry_event
lea edx, [ebp - 0x10]
push edx
call fcn.0040e210
add esp, 8
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x38]
mov dword [eax + 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x38]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + 8], 0
jne 0x456e3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x50], eax
mov edx, dword [ebp + 8]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x456e06
push 1
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x30]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x4c], eax
jmp 0x456e0d
mov dword [ebp - 0x4c], 0
push 8
lea ecx, [ebp - 0x18]
call fcn.00402c30
call fcn.0040e610
push eax
mov ecx, dword [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x18]
call fcn.0040d850
push str.thread.exit_event
lea edx, [ebp - 0x18]
push edx
call fcn.0040e210
add esp, 8
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0x456c00
mov edx, dword [ebp + 0xc]
push edx
push 0
call fcn.00498396
add esp, 0x18
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x28]
cmp dword [edx + 4], 0
jne 0x456ef9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x34], ecx
cmp dword [ebp - 0x34], 0
je 0x456e9f
push 1
mov edx, dword [ebp - 0x34]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x34]
mov edx, dword [eax]
call edx
mov dword [ebp - 0x58], eax
jmp 0x456ea6
mov dword [ebp - 0x58], 0
cmp dword [ebp - 0x24], 0
je 0x456eb6
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + 8], 0
je 0x456ecc
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 8
lea ecx, [ebp - 0x20]
call fcn.00402c30
call fcn.0040e610
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x20]
call fcn.0040d850
push str.thread
lea edx, [ebp - 0x20]
push edx
call fcn.0040e210
add esp, 8
cmp dword [ebp - 0x24], 0
je 0x456f15
push 0xffffffffffffffff
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00478787
mov esp, ebp
pop ebp
ret 8