Function at 0x434020
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x4d5104]
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 0x4340e6
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 [0x518b18]
mov edx, dword [eax]
cmp ecx, dword [edx + 0x80]
jle 0x4340ce
push 0x518b18
call fcn.00483280
add esp, 4
cmp dword [0x518b18], 0xffffffff
jne 0x4340ce
push 0x4b6880
mov dword [0x518b20], 0x518b1c
mov dword [0x518b1c], 0x4bf6a8
call fcn.00482ce0
add esp, 4
push 0x518b18
call fcn.004831c0
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0x518b1c
test eax, eax
jne 0x434275
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 0x434188
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 [0x518b18]
mov edx, dword [eax]
cmp ecx, dword [edx + 0x80]
jle 0x434170
push 0x518b18
call fcn.00483280
add esp, 4
cmp dword [0x518b18], 0xffffffff
jne 0x434170
push 0x4b6880
mov dword [0x518b20], 0x518b1c
mov dword [0x518b1c], 0x4bf6a8
call fcn.00482ce0
add esp, 4
push 0x518b18
call fcn.004831c0
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0x518b1c
test eax, eax
jne 0x434283
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push 0
push edi
push 0x433f70
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 0x434251
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 0x4341d6
push esi
call ebx
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 8]
test eax, eax
je 0x4341e4
push eax
call ebx
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x518b18]
cmp eax, dword [ecx + 0x80]
jle 0x43423d
push 0x518b18
call fcn.00483280
add esp, 4
cmp dword [0x518b18], 0xffffffff
jne 0x43423d
push 0x4b6880
mov dword [0x518b20], 0x518b1c
mov dword [0x518b1c], 0x4bf6a8
call fcn.00482ce0
add esp, 4
push 0x518b18
call fcn.004831c0
add esp, 4
mov eax, dword [esp + 0xc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0x518b1c
test eax, eax
jne 0x434291
test esi, esi
je 0x434261
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.004a8e74
mov esp, ebp
pop ebp
ret 8
mov edx, str.thread.entry_event
lea ecx, [esp + 0x10]
call fcn.00434dd0
mov edx, str.thread.exit_event
lea ecx, [esp + 0x10]
call fcn.00434dd0
mov edx, str.thread
lea ecx, [esp + 0x18]
call fcn.00434dd0
int3