Function at 0x428310
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x556e00
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5c7cec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
lea esi, [ebx + 0x34]
push esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x18]
mov dword [ebp - 4], 0
mov byte [ebp - 0x10], 0
test eax, eax
je 0x428365
cmp eax, 0xffffffff
jne 0x428429
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebx + 0x4c]
mov edx, eax
mov dword [ebp - 0x14], edx
lea eax, [ebx + 0x4c]
mov dword [ebp - 0x20], eax
cmp ecx, edx
je 0x4283b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebx + 0x4c]
mov dword [ebp - 0x18], eax
call fcn.00414f60
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4283aa
cmp ecx, 0xffffffff
je 0x4283aa
mov dword [ebx + 0x4c], ecx
call fcn.00411f30
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebx + 0x4c]
test ecx, ecx
je 0x4284f3
cmp ecx, 0xffffffff
je 0x4284f3
lea eax, [ebx + 0x1c]
push eax
push 0
push ebx
push 0x428a90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebx + 0x18]
mov dword [ebp - 0x18], eax
cmp ecx, eax
je 0x428418
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebx + 0x18]
mov dword [ebp - 0x14], eax
call fcn.00414f60
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x42840c
cmp eax, 0xffffffff
je 0x42840c
mov dword [ebx + 0x18], eax
call fcn.00411f30
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x4284eb
cmp ecx, 0xffffffff
je 0x4284eb
mov eax, dword [ebx + 0x30]
lea edi, [ebx + 0x20]
mov ecx, dword [edi + 8]
inc eax
cmp ecx, eax
ja 0x428443
push 1
mov ecx, edi
call fcn.004287b0
mov ecx, dword [edi + 8]
lea eax, [ecx - 1]
and dword [edi + 0xc], eax
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 8]
add eax, dword [edi + 0xc]
dec ecx
mov edx, dword [edi + 4]
and ecx, eax
cmp dword [edx + ecx*4], 0
lea ebx, [ecx*4]
jne 0x428478
push 0x28
call fcn.00406909
mov ecx, dword [edi + 4]
add esp, 4
mov dword [ebx + ecx], eax
mov edx, dword [edi + 4]
mov edx, dword [ebx + edx]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x20], edx
mov dword [edx + 0x24], 0
mov ebx, dword [ebp + 8]
mov byte [ebp - 4], 1
mov ecx, dword [ebx + 0x24]
test ecx, ecx
je 0x4284c7
cmp ecx, ebx
jne 0x4284bd
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x24], eax
mov ecx, dword [ebx + 0x24]
test ecx, ecx
je 0x4284c7
mov edx, dword [ecx]
cmp ecx, ebx
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
jmp 0x4284c0
mov dword [edx + 0x24], ecx
mov dword [ebx + 0x24], 0
mov eax, dword [ebp - 0x1c]
inc dword [edi + 0x10]
push dword [eax + 0x4c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 0x10]
test eax, eax
movzx ecx, cl
mov edx, 1
cmovne ecx, edx
mov dword [ebp - 0x10], ecx
jmp 0x4284f3
mov ecx, dword [ebp - 0x20]
call fcn.00414f60
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4