Function at 0x428530
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
call fcn.00426900
test eax, eax
je 0x4287ac
mov ebp, dword [esp + 0x40]
mov edi, eax
test ebp, ebp
je 0x42855a
mov eax, dword [eax + 0xb4]
mov edx, dword [esp + 0x40]
mov dword [edx], eax
mov eax, dword [esp + 0x4c]
mov dword [edi + 0x68], 0
xor ebx, ebx
mov dword [edi + 0x24], 1
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x48]
mov dword [edi + 0x14], 0xffffffff
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [edi + 8], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call esi
mov dword [edi + 0x18], eax
sub esp, 0x10
test eax, eax
jne 0x4285d3
add ebx, 1
cmp ebx, 1
je 0x4286e0
mov dword [esp], 0x14
call ebp
sub esp, 4
cmp ebx, 5
jne 0x42858b
lea ebx, [edi + 0x38]
mov dword [edi + 0x1c], 0xffffffff
mov dword [esp], ebx
call fcn.0042a1c0
cmp eax, 1
je 0x4287d9
mov esi, dword [edi + 0x18]
mov dword [edi + 0x38], 0xffffffff
mov dword [edi], 0xbab1f00d
mov dword [edi + 0x6c], 0
mov dword [edi + 0x64], 0
test esi, esi
je 0x428790
mov ecx, dword [esp + 0x44]
xor esi, esi
test ecx, ecx
je 0x428640
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x44]
mov eax, dword [eax]
mov esi, dword [edx + 8]
mov dword [edi + 0x24], eax
test al, 8
jne 0x4287c0
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 0xc]
mov dword [edi + 0x6c], eax
mov dword [esp + 4], esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x426d50
mov dword [esp], 0
call dword [sym.imp.msvcrt.dll__beginthreadex]
mov esi, eax
lea eax, [eax - 1]
cmp eax, 0xfffffffd
ja 0x428750
mov ecx, dword [edi + 0x6c]
mov eax, 0xfffffff1
cmp ecx, 0xfffffff2
jge 0x428720
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [edi + 0x18]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
sub esp, 4
test byte [edi + 0x24], 4
jne 0x4286f8
mov dword [edi + 0x14], esi
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
sub esp, 4
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
sub esp, 4
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
jmp 0x42858b
mov dword [edi + 0x14], 0
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
sub esp, 4
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x4286c0
mov eax, 0xfffffffe
cmp ecx, 0xffffffff
jl 0x42868c
mov eax, 2
cmp ecx, eax
cmovle eax, ecx
cmp ecx, 0xf
mov ecx, 0xf
cmovge eax, ecx
jmp 0x42868c
mov eax, dword [edi + 0x18]
test eax, eax
je 0x428763
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
lea eax, [edi + 0x1c]
mov dword [esp], eax
call fcn.004262a0
mov dword [esp], ebx
call fcn.0042a1c0
cmp eax, 1
je 0x4287d9
mov dword [edi + 0x38], 0xffffffff
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov edx, dword [esp + 0x40]
test edx, edx
je 0x4287a2
mov eax, dword [esp + 0x40]
mov dword [eax], 0
mov eax, dword [edi + 0xb0]
test eax, eax
je 0x4287d0
add esp, 0x2c
mov eax, 0xb
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.00426f00
mov eax, dword [eax + 0x6c]
mov dword [edi + 0x6c], eax
jmp 0x428640
mov eax, edi
call fcn.004269c0
jmp 0x4287ac
call fcn.00426720
nop
push esi
push ebx
sub esp, 0x24
mov esi, dword [esp + 0x30]
test esi, esi
je 0x4288f8
mov dword [esp], 0x42c0bc
call fcn.00425dc0
mov eax, esi
call fcn.00426470
mov dword [esp], 0x42c0bc
mov ebx, eax
call fcn.00426110
test ebx, ebx
je 0x4288f8
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x4288f8
lea edx, [esp + 0x1c]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
sub esp, 8
test eax, eax
je 0x4288f8
test byte [ebx + 0x24], 4
jne 0x428908
call fcn.00426f00
test eax, eax
je 0x428860
cmp esi, dword [eax + 0xb4]
je 0x428918
mov ecx, dword [ebx + 0x68]
mov eax, dword [ebx + 0x14]
test ecx, ecx
je 0x428872
lea edx, [eax - 1]
cmp edx, 0xfffffffd
ja 0x428889
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebx + 0x14]
sub esp, 8
mov dword [esp], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x4288a6
mov dword [esp], eax
call esi
sub esp, 4
mov edx, dword [esp + 0x34]
mov dword [ebx + 0x18], 0
test edx, edx
je 0x4288be
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x34]
mov dword [ecx], eax
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.004262a0
lea eax, [ebx + 0x38]
mov dword [esp], eax
call fcn.0042a1c0
cmp eax, 1
je 0x42891f
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0x38], 0xffffffff
xor esi, esi
test eax, eax
jne 0x4288fd
mov eax, ebx
call fcn.004269c0
jmp 0x4288fd
mov esi, 3
add esp, 0x24
mov eax, esi
pop ebx
pop esi
ret
mov esi, 0x16
add esp, 0x24
mov eax, esi
pop ebx
pop esi
ret
mov esi, 0x24
jmp 0x4288fd
call fcn.00426720
lea esi, [esi]
lea esi, [esi]
nop
push edi
push esi
push ebx
sub esp, 0x20
mov dword [esp], 0x42c0bc
mov edi, dword [esp + 0x30]
call fcn.00425dc0
mov eax, edi
call fcn.00426470
test eax, eax
je 0x428a48
mov ebx, eax
mov eax, dword [eax + 0x14]
test eax, eax
je 0x428a48
lea edx, [esp + 0x1c]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
sub esp, 8
test eax, eax
je 0x428a48
mov esi, dword [ebx + 0x24]
and esi, 4
jne 0x428a60
call fcn.00426f00
test eax, eax
je 0x428999
mov esi, dword [eax + 0xb4]
cmp edi, esi
je 0x428ab0
mov esi, dword [ebx + 0x68]
mov eax, dword [ebx + 0x14]
test esi, esi
jne 0x4289ca
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
test eax, eax
jne 0x428a80
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x4289e7
mov dword [esp], eax
call esi
sub esp, 4
mov edx, dword [esp + 0x34]
mov dword [ebx + 0x18], 0
test edx, edx
je 0x4289ff
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x34]
mov dword [ecx], eax
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.004262a0
lea eax, [ebx + 0x38]
mov dword [esp], eax
call fcn.0042a1c0
cmp eax, 1
je 0x428ac6
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0x38], 0xffffffff
test eax, eax
je 0x428aa0
mov dword [esp], 0x42c0bc
call fcn.00426110
xor eax, eax
add esp, 0x20
pop ebx
pop esi
pop edi
ret
mov dword [esp], 0x42c0bc
call fcn.00426110
add esp, 0x20
mov eax, 3
pop ebx
pop esi
pop edi
ret
mov dword [esp], 0x42c0bc
call fcn.00426110
add esp, 0x20
mov eax, 0x16
pop ebx
pop esi
pop edi
ret
mov ecx, dword [ebx + 0x68]
test ecx, ecx
jne 0x4289c7
mov dword [esp], 0x42c0bc
call fcn.00426110
mov eax, 0x10
jmp 0x428a3d
mov eax, ebx
call fcn.004269c0
jmp 0x428a2f
mov dword [esp], 0x42c0bc
call fcn.00426110
mov eax, 0x24
jmp 0x428a3d
call fcn.00426720
lea esi, [esi]
nop