Function at 0x4f0020
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ea7f4
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x69001c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0xc
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x20], 0
push str._prepare_evt
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
call fcn.00406e80
mov dword [ebp - 4], 0
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x64]
call fcn.00554250
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x4f00a3
mov eax, dword [eax]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
push 0
push 1
push 0
call ebx
mov dword [ebp - 0x68], eax
cmp eax, dword [esi + 0x1bc]
je 0x4f00d5
mov edx, dword [esi + 0x1b8]
lea ecx, [esi + 0x1b8]
call dword [edx + 4]
mov eax, dword [ebp - 0x68]
mov dword [esi + 0x1bc], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.004075e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004075e0
push 9
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], 0
push str._uigo_evt
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
call fcn.00406e80
mov dword [ebp - 4], 2
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x64]
call fcn.00554250
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x4f0146
mov eax, dword [eax]
push eax
push 0
push 1
push 0
call ebx
mov dword [ebp - 0x68], eax
cmp eax, dword [esi + 0x1b4]
je 0x4f0172
mov edx, dword [esi + 0x1b0]
lea ecx, [esi + 0x1b0]
call dword [edx + 4]
mov eax, dword [ebp - 0x68]
mov dword [esi + 0x1b4], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x64]
call fcn.004075e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.004075e0
push 0xb
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x20], 0
push str._uidone_evt
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
call fcn.00406e80
mov dword [ebp - 4], 4
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x64]
call fcn.00554250
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
jb 0x4f01e3
mov eax, dword [eax]
push eax
push 0
push 1
push 0
call ebx
mov ebx, eax
cmp ebx, dword [esi + 0x1cc]
je 0x4f020b
mov edx, dword [esi + 0x1c8]
lea ecx, [esi + 0x1c8]
call dword [edx + 4]
mov dword [esi + 0x1cc], ebx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x64]
call fcn.004075e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004075e0
push 8
call fcn.005904a9
mov edi, eax
add esp, 4
mov dword [ebp - 0x68], edi
mov dword [ebp - 4], 6
mov dword [edi], 0x4efd00
mov dword [edi + 4], esi
mov dword [ebp - 4], 0xffffffff
push 0
push 0
push edi
push 0x4326a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
jne 0x4f0271
push 8
push edi
call fcn.00590478
add esp, 8
cmp ebx, dword [esi + 0x1ac]
je 0x4f028e
mov eax, dword [esi + 0x1a8]
lea ecx, [esi + 0x1a8]
call dword [eax + 4]
mov dword [esi + 0x1ac], ebx
mov eax, dword [esi + 0x1ac]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x1b4]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x1bc]
push 0xffffffffffffffff
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push 0
push eax
push 3
call ebx
cmp eax, 3
jae 0x4f034a
mov ecx, dword [ebp + eax*4 - 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_SetEvent]
cmp ecx, dword [esi + 0x1bc]
jne 0x4f0327
mov eax, dword [esi + 0x208]
test eax, eax
je 0x4f0316
mov ecx, dword [esi + 0x140]
push pe_nt_image_headers32
push 1
push dword [eax + 8]
call fcn.0051f3f0
push dword [esi + 0x208]
call fcn.0051f5d0
mov ecx, dword [esi + 0x140]
lea ecx, [ecx + 0xc]
call fcn.00518060
push dword [esi + 0x1c4]
call edi
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x1c]
push eax
push 2
call ebx
cmp eax, 3
jae 0x4f034a
mov eax, dword [ebp + eax*4 - 0x1c]
cmp eax, dword [esi + 0x1b4]
jne 0x4f034a
mov ecx, dword [esi + 0x1d0]
test ecx, ecx
je 0x4f034a
call fcn.004afb50
push dword [esi + 0x1cc]
call edi
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
lea eax, [ebp - 0x6c]
push eax
push dword [esi + 0x1ac]
mov dword [ebp - 0x6c], 0
call edi
test eax, eax
je 0x4f0393
cmp dword [ebp - 0x6c], 0x103
jne 0x4f0393
push 0xffffffffffffffff
push dword [esi + 0x1ac]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4f0387
or eax, 0xffffffff
jmp 0x4f03e9
lea eax, [ebp - 0x6c]
push eax
push dword [esi + 0x1ac]
call edi
cmp dword [esi + 0x1e4], 0
je 0x4f03e6
mov ecx, dword [esi + 0x148]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test al, al
jne 0x4f03e6
cmp dword [esi + 0x1e8], 8
lea ecx, [esi + 0x1d4]
mov edx, dword [esi + 0x204]
jb 0x4f03c4
mov ecx, dword [ecx]
push ecx
mov eax, esp
add esi, 0x1ec
mov dword [eax], ecx
cmp dword [esi + 0x14], 8
jb 0x4f03d7
mov esi, dword [esi]
push ecx
mov eax, esp
xor ecx, ecx
mov dword [eax], esi
call fcn.004a6fe0
add esp, 8
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059046a
mov esp, ebp
pop ebp
ret