Function at 0x4226d4
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0xffffffff
call fcn.00420514
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x42270e
mov eax, 0xb
jmp 0x422a36
cmp dword [ebp + 8], 0
je 0x422722
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0xb4]
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x68], 0
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp + 0x14]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp + 0x10]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x24], 1
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x14], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateEventA]
call eax
sub esp, 0x10
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x4227b6
cmp dword [ebp - 0x10], 0
jne 0x422798
mov eax, 0
jmp 0x42279d
mov eax, 0x14
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
add dword [ebp - 0x10], 1
cmp dword [ebp - 0x10], 4
jle 0x422752
jmp 0x4227b7
nop
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x1c], 0xffffffff
mov eax, dword [ebp - 0x20]
lea edx, [eax + 0x38]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.0042060b
mov eax, dword [ebp - 0x20]
mov dword [eax], 0xbab1f00d
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x6c], 0
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x64], 0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x422833
cmp dword [ebp + 8], 0
je 0x42281e
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call fcn.00420422
mov eax, 0xb
jmp 0x422a36
cmp dword [ebp + 0xc], 0
je 0x422889
mov dword [ebp - 0x24], 0
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x24], edx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00422221
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x42287d
call fcn.004216ab
mov edx, dword [eax + 0x6c]
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x6c], edx
jmp 0x422889
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x6c], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 4
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x4224d5
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
call eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4228cd
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
jne 0x422961
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4228f4
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x20]
add eax, 0x1c
mov dword [esp], eax
call fcn.0041fbdf
mov eax, dword [ebp - 0x20]
lea edx, [eax + 0x38]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.0042060b
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x14], 0
cmp dword [ebp + 8], 0
je 0x42294c
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call fcn.00420422
mov eax, 0xb
jmp 0x422a36
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x6c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xfffffff2
jge 0x422979
mov dword [ebp - 0x18], 0xfffffff1
jmp 0x4229a4
cmp dword [ebp - 0x18], 0xffffffff
jge 0x422988
mov dword [ebp - 0x18], 0xfffffffe
jmp 0x4229a4
cmp dword [ebp - 0x18], 0xe
jle 0x422997
mov dword [ebp - 0x18], 0xf
jmp 0x4229a4
cmp dword [ebp - 0x18], 1
jle 0x4229a4
mov dword [ebp - 0x18], 2
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
call eax
sub esp, 8
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_ResetEvent]
call eax
sub esp, 4
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x24]
and eax, 4
test eax, eax
je 0x422a07
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_ResumeThread]
call eax
sub esp, 4
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
jmp 0x422a20
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_ResumeThread]
call eax
sub esp, 4
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov eax, 0
leave
ret