Function at 0x429a80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4890e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
push esi
push 1
mov ebx, ecx
push esi
push esi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp + 0x20]
push ebx
push esi
push 0x429de0
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], esi
mov dword [ebx + 0x28], esi
mov dword [ebx + 0x10], 0xffffffff
call fcn.004412f6
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
add esp, 0xc
mov dword [ebp - 4], esi
push esi
push ecx
mov ecx, dword [ebp + 0x10]
push edx
push eax
push ecx
lea ecx, [ebx + 0x14]
call fcn.0047c191
mov edx, eax
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x11c]
rep stosd dword es:[edi], eax
lea eax, [ebp + 0x20]
lea ecx, [ebp - 0x11c]
push eax
push ecx
mov ecx, edx
mov dword [ebx + 0x28], edx
mov dword [ebx + 8], 1
mov dword [ebp + 0x20], esi
call fcn.0047c430
mov edi, dword [ebp + 0xc]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x11c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x11c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
mov esi, 1
push esi
push 2
push eax
push ecx
mov ecx, dword [ebx + 0x28]
call fcn.0047c444
xor edi, edi
cmp eax, edi
je 0x429bc6
mov eax, dword [ebx + 8]
mov dword [ebx + 0x10], esi
cmp eax, esi
jne 0x429ba6
mov ecx, dword [ebx + 0x28]
cmp ecx, edi
je 0x429ba6
mov dword [ebx + 8], esi
mov edx, dword [ecx]
call dword [edx + 0xc]
mov ecx, dword [ebx + 0x28]
cmp ecx, edi
je 0x429ba3
mov eax, dword [ecx]
push esi
call dword [eax + 4]
mov dword [ebx + 0x28], edi
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
cmp dword [ebx + 8], esi
jne 0x429bea
mov ecx, dword [ebx + 0x28]
cmp ecx, edi
je 0x429bea
mov dword [ebx + 8], edi
mov edx, dword [ecx]
call dword [edx + 0xc]
mov ecx, dword [ebx + 0x28]
cmp ecx, edi
je 0x429be7
mov eax, dword [ecx]
push esi
call dword [eax + 4]
mov dword [ebx + 0x28], edi
mov ecx, dword [ebx + 0x10]
mov eax, 2
cmp ecx, eax
je 0x429dcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.ERROR_:_GetLastError______d_
call fcn.0042aeb0
add esp, 8
cmp esi, edi
jne 0x429c3b
mov ecx, dword [ebx + 4]
mov dword [ebx + 0x10], 3
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
cmp esi, 0x2ee3
jne 0x429c6a
mov ecx, dword [ebx + 4]
mov dword [ebx + 0x10], 6
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
cmp esi, 2
je 0x429d0d
cmp esi, 3
je 0x429d0d
cmp esi, 0x2efd
jne 0x429cab
mov ecx, dword [ebx + 4]
mov dword [ebx + 0x10], 4
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
cmp esi, 0x2eee
jne 0x429cda
mov ecx, dword [ebx + 4]
mov dword [ebx + 0x10], 5
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, dword [ebx + 4]
sub esi, 0x2eff
neg esi
sbb esi, esi
push ecx
and esi, 0xc
add esi, 8
mov dword [ebx + 0x10], esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, dword [ebx + 4]
mov dword [ebx + 0x10], 7
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x1c