Function at 0x45a854
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x45a85c
push ecx
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x45aba3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x1a4], 0
jne 0x45a8b0
mov dl, 1
mov eax, dword [0x435cb0]
call fcn.0043d8e0
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0xc]
add eax, 0x1a4
mov edx, ebx
test edx, edx
je 0x45a8ab
sub edx, 0xffffffc0
call fcn.00406888
mov eax, esi
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x1a4]
call fcn.00406888
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x1c4], 0
je 0x45ab6a
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x1a4]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jne 0x45ab6a
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x1a4]
call fcn.00406888
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x1a4]
mov ecx, 0x45abb4
call fcn.004068b4
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
mov dword [ebp - 8], eax
push ebp
call fcn.0045a5f0
pop ecx
lea ecx, [ebp - 0x14]
mov edx, 0x45abcc
mov eax, dword [ebp - 0xc]
call fcn.0043c30c
mov ebx, dword [0x5334e0]
mov ebx, dword [ebx]
mov dl, 0x7c
mov eax, dword [ebp - 0x14]
call ebx
test eax, eax
jle 0x45a9ef
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], 1
xor eax, eax
push ebp
push 0x45a9d9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
mov ebx, dword [0x5335c0]
mov ebx, dword [ebx]
mov cl, 0x7c
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call ebx
mov eax, dword [0x535824]
call fcn.00405ee4
mov esi, eax
test esi, esi
jl 0x45a9cf
inc esi
xor ebx, ebx
mov edi, ebx
shl edi, 3
sub edi, ebx
mov eax, dword [0x535824]
mov eax, dword [eax + edi*4]
mov ecx, dword [0x532fc8]
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x10]
call ecx
test al, al
je 0x45a9cb
mov eax, dword [0x535824]
cmp byte [eax + edi*4 + 0x18], 0
je 0x45a9cf
push ebp
mov eax, dword [0x535824]
mov eax, dword [eax + edi*4]
mov edx, 0x45abd8
call fcn.00459d78
pop ecx
jmp 0x45a9cf
inc ebx
dec esi
jne 0x45a989
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45a9e3
inc dword [ebp - 0x18]
dec dword [ebp - 0x20]
jne 0x45a952
mov eax, dword [ebp - 0xc]
call fcn.0043a0cc
test al, al
je 0x45aa18
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x13c], 0
je 0x45aa18
push ebp
mov edx, 0x45abd8
mov eax, 0x45ac14
call fcn.00459d78
pop ecx
mov eax, dword [ebp - 0xc]
call fcn.0043a0e8
test al, al
je 0x45aa41
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x13c], 0
je 0x45aa41
push ebp
mov edx, 0x45abd8
mov eax, 0x45ac34
call fcn.00459d78
pop ecx
mov eax, dword [ebp - 0xc]
call fcn.0043a108
test al, al
je 0x45aa67
cmp dword [0x52fe9c], 0
je 0x45aa67
push ebp
mov edx, 0x45abd8
mov eax, 0x45ac50
call fcn.00459d78
pop ecx
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
xor eax, eax
push ebp
push 0x45aabd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
dec eax
test eax, eax
jl 0x45aab3
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
mov ecx, dword [eax + edx*8 + 4]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
mov edx, dword [eax + edx*8]
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0x28]
inc dword [ebp - 0x18]
dec dword [ebp - 0x20]
jne 0x45aa90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45aac7
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x10]
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x218], 0
jne 0x45ab6a
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x219], 0
jne 0x45aaf8
call sub.kernel32.dll_GetCurrentThreadId_1
cmp eax, dword [0x530834]
jne 0x45ab2c
mov eax, 0xfa
call fcn.00431d0c
test al, al
jne 0x45ab2c
mov eax, dword [ebp - 0xc]
add eax, 0x1fc
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
push fcn.00459304
push 0
push 0
call sub.kernel32.dll_CreateThread_1
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x1f8], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x1f8]
test eax, eax
jne 0x45ab62
mov eax, dword [ebp - 0xc]
call fcn.00439470
test al, al
je 0x45ab57
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x204]
mov cl, 1
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x34]
mov eax, dword [ebp - 0xc]
push eax
call fcn.00459304
jmp 0x45ab6a
push 1
push eax
call sub.kernel32.dll_SetThreadPriority
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45abaa
lea eax, [ebp - 0x24]
call fcn.00406870
lea eax, [ebp - 0x1c]
call fcn.00406870
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404f5c
lea eax, [ebp - 4]
mov edx, dword [0x459d54]
call fcn.004061b8
ret