Function at 0x454522
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x569564]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
jmp 0x454541
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, edi
call fcn.004550fc
test al, al
je 0x454537
mov eax, dword [edi + 0x24]
xor ecx, ecx
sub eax, dword [edi + 0x20]
sar eax, 2
mov dword [ebp - 0x20], ecx
test eax, eax
je 0x45475f
push ebx
push esi
mov eax, dword [edi + 0x20]
mov ebx, ecx
shl ebx, 2
mov eax, dword [ebx + eax]
cmp dword [eax + 0xf4], 0
jne 0x454630
cmp dword [eax + 0x110], 0
jne 0x454630
push 0x24
call fcn.004ac2cd
mov esi, eax
mov dword [ebp - 0x24], esi
pop ecx
test esi, esi
je 0x4545b2
xor eax, eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], eax
mov byte [esi], al
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
jmp 0x4545b4
xor esi, esi
mov eax, dword [edi + 0x20]
mov eax, dword [ebx + eax]
add eax, 0xc0
cmp dword [eax + 0x14], 8
jb 0x4545c7
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.005162f0
pop ecx
pop ecx
push eax
mov ecx, esi
call fcn.004039f8
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.004049c9
and dword [esi + 0x18], 0
mov eax, dword [edi + 0x20]
push dword [eax + ebx]
call fcn.00455333
mov byte [esi + 0x1c], al
xor eax, eax
mov dword [esi + 0x1d], eax
mov eax, dword [edi + 0x20]
add eax, ebx
push dword [eax]
call fcn.00455333
push eax
push 0
push dword [esi + 0x18]
mov byte [esi + 0x21], al
movzx eax, byte [esi + 0x20]
push eax
movzx eax, byte [esi + 0x1f]
push eax
movzx eax, byte [esi + 0x1e]
push eax
movzx eax, byte [esi + 0x1d]
push eax
push esi
call fcn.0040b440
add esp, 0x28
mov eax, dword [edi + 0x20]
mov eax, dword [ebx + eax]
cmp dword [eax + 0xf4], 0
je 0x4546df
cmp dword [eax + 0x110], 0
jne 0x4546df
push 0x24
call fcn.004ac2cd
mov esi, eax
mov dword [ebp - 0x24], esi
pop ecx
test esi, esi
je 0x45467b
xor eax, eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], eax
mov byte [esi], al
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
jmp 0x45467d
xor esi, esi
mov eax, dword [edi + 0x20]
mov eax, dword [ebx + eax]
add eax, 0xc0
cmp dword [eax + 0x14], 8
jb 0x454690
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.005162f0
pop ecx
pop ecx
push eax
mov ecx, esi
call fcn.004039f8
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.004049c9
mov eax, dword [edi + 0x20]
mov eax, dword [ebx + eax]
mov eax, dword [eax + 0xf4]
mov dword [esi + 0x18], eax
xor eax, eax
push eax
push eax
push dword [esi + 0x18]
mov dword [esi + 0x1c], 0x100
push eax
push eax
push eax
push 1
push esi
mov word [esi + 0x20], ax
call fcn.0040b440
add esp, 0x20
mov eax, dword [edi + 0x20]
mov eax, dword [ebx + eax]
cmp dword [eax + 0xf4], 0
je 0x454745
cmp dword [eax + 0x110], 0
je 0x454745
push 8
call fcn.004ac2cd
pop ecx
mov ecx, dword [edi + 0x20]
mov edx, eax
mov ecx, dword [ebx + ecx]
mov dword [edx], ecx
mov ecx, dword [edi]
mov dword [edx + 4], ecx
mov esi, dword [edi + 0x12c]
lea eax, [esi + 1]
mov dword [edi + 0x12c], eax
xor eax, eax
push eax
push eax
push edx
push 0x454feb
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + esi*4 + 0x2c], eax
mov eax, dword [edi + 0x12c]
push 0xffffffffffffffff
push dword [edi + eax*4 + 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [edi + 0x24]
mov ecx, dword [ebp - 0x20]
sub eax, dword [edi + 0x20]
inc ecx
sar eax, 2
mov dword [ebp - 0x20], ecx
cmp ecx, eax
jb 0x454562
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004ac267
mov esp, ebp
pop ebp
ret