Function at 0x462470
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x4e81bc]
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 0x46250c
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 0x4624d8
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 0x4624df
mov dword [ebp - 0x40], 0
push 8
lea ecx, [ebp - 0x10]
call fcn.00402220
call fcn.00416890
push eax
mov ecx, dword [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00416750
push str.thread.entry_event
lea edx, [ebp - 0x10]
push edx
call fcn.00417930
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 0x46259a
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 0x462566
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 0x46256d
mov dword [ebp - 0x4c], 0
push 8
lea ecx, [ebp - 0x18]
call fcn.00402220
call fcn.00416890
push eax
mov ecx, dword [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00416750
push str.thread.exit_event
lea edx, [ebp - 0x18]
push edx
call fcn.00417930
add esp, 8
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0x462360
mov edx, dword [ebp + 0xc]
push edx
push 0
call fcn.004a1caa
add esp, 0x18
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x28]
cmp dword [edx + 4], 0
jne 0x462659
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 0x4625ff
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 0x462606
mov dword [ebp - 0x58], 0
cmp dword [ebp - 0x24], 0
je 0x462616
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 0x46262c
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.00402220
call fcn.00416890
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00416750
push str.thread
lea edx, [ebp - 0x20]
push edx
call fcn.00417930
add esp, 8
cmp dword [ebp - 0x24], 0
je 0x462675
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.00482147
mov esp, ebp
pop ebp
ret 8