Function at 0x4339f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x4c8104]
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 0x433ab6
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 [0x50b800]
mov edx, dword [eax]
cmp ecx, dword [edx + 0x68]
jle 0x433a9e
push 0x50b800
call fcn.004797e0
add esp, 4
cmp dword [0x50b800], 0xffffffff
jne 0x433a9e
push 0x4ac210
mov dword [0x50b808], 0x50b804
mov dword [0x50b804], 0x4b4678
call fcn.00479250
add esp, 4
push 0x50b800
call fcn.00479720
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0x50b804
test eax, eax
jne 0x433c45
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 0x433b58
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 [0x50b800]
mov edx, dword [eax]
cmp ecx, dword [edx + 0x68]
jle 0x433b40
push 0x50b800
call fcn.004797e0
add esp, 4
cmp dword [0x50b800], 0xffffffff
jne 0x433b40
push 0x4ac210
mov dword [0x50b808], 0x50b804
mov dword [0x50b804], 0x4b4678
call fcn.00479250
add esp, 4
push 0x50b800
call fcn.00479720
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0x50b804
test eax, eax
jne 0x433c53
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push 0
push edi
push 0x433940
push dword [esp + 0x1c]
push 0
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
mov dword [ebx + 4], eax
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x433c21
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 0x433ba6
push esi
call ebx
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 8]
test eax, eax
je 0x433bb4
push eax
call ebx
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x50b800]
cmp eax, dword [ecx + 0x68]
jle 0x433c0d
push 0x50b800
call fcn.004797e0
add esp, 4
cmp dword [0x50b800], 0xffffffff
jne 0x433c0d
push 0x4ac210
mov dword [0x50b808], 0x50b804
mov dword [0x50b804], 0x4b4678
call fcn.00479250
add esp, 4
push 0x50b800
call fcn.00479720
add esp, 4
mov eax, dword [esp + 0xc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0x50b804
test eax, eax
jne 0x433c61
test esi, esi
je 0x433c31
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.0049f3c4
mov esp, ebp
pop ebp
ret 8
mov edx, str.thread.entry_event
lea ecx, [esp + 0x10]
call fcn.004347a0
mov edx, str.thread.exit_event
lea ecx, [esp + 0x10]
call fcn.004347a0
mov edx, str.thread
lea ecx, [esp + 0x18]
call fcn.004347a0
int3