Function at 0x412e19
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 4], ecx
push esi
push edi
push 0x412e70
push 8
call fcn.004015a0
and dword [ebp + 0xc], 0
add esp, 0x18
test esi, esi
je 0x433a24
add esi, edi
push ebx
mov ebx, edi
mov dword [ebp - 0x10], esi
cmp edi, esi
mov dword [ebp - 8], ebx
jb 0x412f30
mov eax, dword [ebp + 0xc]
pop ebx
pop edi
pop esi
leave
ret 0x10
mov edi, dword [ebp - 4]
add edi, 0x24
push ebx
mov ecx, edi
call fcn.004028b8
cmp byte [ebp + 0x14], 0
mov esi, dword [eax]
je 0x412f59
push dword [esi + 0x20]
mov ecx, dword [ebp - 4]
call fcn.00418e0c
test eax, eax
je 0x433a39
mov eax, dword [ebp + 0x10]
xor ecx, ecx
sub eax, ecx
jne 0x433a50
cmp dword [esi + 0x38], ecx
jne 0x433a67
mov eax, dword [esi + 4]
cmp eax, ecx
jge 0x433a76
cmp eax, 0x80070037
je 0x433a80
push ebx
mov ecx, edi
call fcn.004028b8
mov eax, dword [eax]
cmp dword [eax + 0x38], 0
jne 0x433a8a
test byte [esi + 0x10c], 1
jne 0x433ac2
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
xor eax, eax
push eax
push eax
push 1
push eax
call ebx
mov dword [ebp - 0xc], eax
lea edi, [esi + 0x14]
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
mov dword [ebp + 8], edi
call fcn.0040f472
cmp dword [edi], 0
je 0x433af0
mov eax, dword [ebp - 4]
push dword [eax + 0xa4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [esi]
push 0x413078
push 8
call fcn.004015a0
add esp, 0xc
xor eax, eax
push eax
push eax
push 1
push eax
call ebx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
lea edi, [esi + 0x18]
push eax
mov ecx, edi
call fcn.0040f472
xor eax, eax
cmp dword [edi], eax
je 0x433b19
push eax
push eax
push eax
push eax
call ebx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
lea ebx, [esi + 0x174]
push eax
mov ecx, ebx
call fcn.0040f472
xor eax, eax
cmp dword [ebx], eax
je 0x433b55
lea ecx, [esi + 8]
push ecx
push eax
push esi
push 0x40d572
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
je 0x433b90
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 8]
inc ebx
cmp ebx, dword [ebp - 0x10]
jmp 0x412e5b
push 0x4340a8
push 8
call fcn.004015a0
pop ecx
pop ecx
xor eax, eax
jmp 0x412e68
push dword [esi + 0x58]
push 0x434020
push 4
call fcn.004015a0
add esp, 0xc
jmp 0x413066
dec eax
jne 0x412f6f
cmp dword [esi + 0x38], ecx
jne 0x412f6f
push 0x433fd0
jmp 0x433a6c
push 0x433f80
call fcn.00404f00
jmp 0x413066
push dword [esi + 0x58]
push 0x433f08
jmp 0x433a41
push dword [esi + 0x58]
push 0x433e80
jmp 0x433a41
push ebx
mov ecx, edi
call fcn.004028b8
mov eax, dword [eax]
cmp dword [eax + 0x50], 2
push ebx
mov ecx, edi
jne 0x433acf
call fcn.004028b8
mov eax, dword [eax]
mov dword [eax + 0x50], 3
push dword [esi + 0x58]
push 0x433d68
push 4
call fcn.004015a0
add esp, 0xc
jmp 0x412f99
push dword [esi + 0x58]
push 0x433d00
jmp 0x433a41
call fcn.004028b8
mov eax, dword [eax]
push dword [eax + 0x50]
push dword [esi + 0x58]
push 0x433c30
push 4
call fcn.004015a0
add esp, 0x10
jmp 0x413066
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0xc], eax
test eax, eax
jle 0x433b0a
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp + 0xc], eax
push dword [ebp + 0xc]
push dword [esi + 0x58]
push 0x433bd0
push 1
jmp 0x433ae3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0xc], eax
test eax, eax
jle 0x433b33
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp + 0xc], eax
push dword [ebp + 0xc]
push dword [esi + 0x58]
push 0x433bd0
push 1
call fcn.004015a0
add esp, 0x10
mov ecx, dword [ebp + 8]
call fcn.0040f459
jmp 0x413066
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0xc], eax
test eax, eax
jle 0x433b6f
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp + 0xc], eax
push dword [ebp + 0xc]
push dword [esi + 0x58]
push 0x433bd0
push 1
call fcn.004015a0
mov ecx, dword [ebp + 8]
add esp, 0x10
call fcn.0040f459
mov ecx, edi
jmp 0x433b4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0xc], eax
test eax, eax
jle 0x433baa
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp + 0xc], eax
push eax
push dword [esi + 0x58]
mov dword [esi + 4], eax
push 0x433bd0
push 1
call fcn.004015a0
add esp, 0x10
mov ecx, edi
call fcn.0040f459
jmp 0x433b48