Function at 0x544040
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x18]
lea esi, [ebp - 0x14]
push ebx
sub esp, 0x24
mov ebx, dword [sym.imp.kernel32.dll_CreateEventW]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call ebx
sub esp, 0x10
mov dword [0x8903f0], eax
call fcn.0057d110
mov dword [eax], 0x5f810b
mov dword [eax + 4], 0x8e
xor eax, eax
mov dword [esp + 4], 0x5f84c5
mov ecx, dword [0x8903f0]
test ecx, ecx
setne al
mov dword [esp], eax
call fcn.00543700
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call ebx
sub esp, 0x10
mov dword [0x8903ec], eax
call fcn.0057d110
mov dword [eax], 0x5f810b
mov dword [eax + 4], 0x90
xor eax, eax
mov dword [esp + 4], 0x5f84c5
mov ebx, dword [0x8903ec]
test ebx, ebx
setne al
mov dword [esp], eax
call fcn.00543700
mov dword [0x8903e8], 0xffffffff
call dword [0x8903bc]
mov dword [0x8903cc], eax
call fcn.0057d110
mov dword [eax], 0x5f810b
mov dword [eax + 4], 0x6bf
mov eax, dword [0x57f8ec]
mov dword [esp + 4], str._s_failed_n
mov dword [esp + 8], eax
mov eax, dword [0x8903c0]
cmp dword [0x8903cc], eax
setne al
movzx eax, al
mov dword [esp], eax
call fcn.00543700
mov dword [esp + 4], 0x1012
mov eax, dword [0x8903cc]
mov dword [esp], eax
call dword [0x8903b4]
sub esp, 8
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5f810b
mov dword [eax + 4], 0x6c1
mov eax, dword [0x57f8e4]
mov dword [esp], ebx
xor ebx, ebx
mov dword [esp + 8], eax
mov dword [esp + 4], str._s_failed_n
call fcn.00543700
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x548cf0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
sub esp, 0x18
mov dword [esi + ebx*4], eax
call fcn.0057d110
mov dword [eax], 0x5f810b
mov dword [eax + 4], 0x6c8
xor eax, eax
mov dword [esp + 4], 0x5f84e4
mov edx, dword [esi + ebx*4]
test edx, edx
setne al
mov dword [esp], eax
call fcn.00543700
test ebx, ebx
jne 0x544210
mov ebx, 1
jmp 0x54419e
mov dword [esp + 4], esi
mov dword [esp + 0xc], 0xea60
mov dword [esp + 8], 1
mov dword [esp], 2
call dword [sym.imp.kernel32.dll_WaitForMultipleObjects]
sub esp, 0x10
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5f810b
mov dword [eax + 4], 0x6cc
test esi, esi
je 0x544260
mov eax, dword [0x8f0770]
test eax, eax
sete al
xor ebx, ebx
cmp esi, 1
sete bl
and ebx, eax
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], str.WaitForAllObjects_2_threads__ld_n
call fcn.00543700
mov eax, dword [ebp - 0x14]
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x10]
sub esp, 4
mov dword [esp], eax
call ebx
mov eax, dword [0x8903cc]
sub esp, 4
mov dword [esp], eax
call dword [0x8903b0]
sub esp, 4
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5f810b
mov dword [eax + 4], 0x6d2
mov eax, dword [0x57f8e0]
mov dword [esp], esi
mov dword [esp + 8], eax
mov dword [esp + 4], str._s_failed_n
call fcn.00543700
mov eax, dword [0x8903f0]
mov dword [esp], eax
call ebx
mov eax, dword [0x8903ec]
sub esp, 4
mov dword [esp], eax
call ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret