Function at 0x53fae0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60ff8f
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x6b000c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
test eax, eax
je 0x53fcda
cmp dword [eax + 0x30], 0
jne 0x53fb24
cmp dword [eax + 0x34], 0
je 0x53fcda
mov esi, dword [edi + 0x38]
mov dword [edi + 0x60], 1
test esi, esi
je 0x53fcda
mov esi, dword [esi + 0x44]
push 0x78
call fcn.00560437
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
sub esp, 8
mov eax, dword [edi]
push 0
push 0
push esi
push 0
push 0
push dword [eax + 0x1c]
call fcn.00413c10
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 4], eax
test eax, eax
je 0x53fcda
mov ecx, dword [edi]
mov eax, dword [ecx + 0x2c]
mov dword [ecx + 0x24], 1
mov dword [ecx + 0x58], eax
mov edx, dword [edi]
mov ecx, edx
mov eax, dword [edx + 0x40]
mov dword [edi + 0x28], eax
mov eax, dword [edx + 0x44]
mov dword [edi + 0x2c], eax
mov esi, dword [edx + 0x48]
add esi, dword [edx + 0x40]
mov eax, dword [edx + 0x4c]
adc eax, dword [edx + 0x44]
cmp eax, dword [edx + 0x34]
jg 0x53fc9b
jl 0x53fbb3
cmp esi, dword [edx + 0x30]
ja 0x53fc9b
mov ecx, dword [edi + 0x38]
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
mov ecx, dword [edi]
test al, al
jne 0x53fc94
mov esi, dword [ecx + 8]
mov eax, esi
mov ebx, dword [ecx + 0xc]
or eax, ebx
je 0x53fbf0
mov edx, dword [ecx + 0x48]
add edx, dword [ecx + 0x40]
mov eax, dword [ecx + 0x4c]
adc eax, dword [ecx + 0x44]
cmp eax, ebx
jg 0x53fc9b
jl 0x53fbf0
cmp edx, esi
ja 0x53fc9b
mov eax, dword [ecx + 0x40]
mov dword [ecx + 0x60], eax
mov eax, dword [ecx + 0x44]
mov dword [ecx + 0x64], eax
mov eax, dword [ecx + 0x48]
mov dword [ecx + 0x68], eax
mov eax, dword [ecx + 0x4c]
mov dword [ecx + 0x6c], eax
mov eax, dword [ecx + 0x50]
mov dword [ecx + 0x70], eax
mov eax, dword [ecx + 0x54]
mov dword [ecx + 0x74], eax
mov eax, dword [edi]
mov ecx, dword [eax + 0x48]
add ecx, dword [eax + 0x2c]
lea eax, [ebp - 0x14]
push eax
push 0
push edi
push 0x53f5a0
push 0
push 0
mov dword [edi + 0x3c], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [edi]
mov ebx, eax
cmp dword [esi + 0x24], 0
jne 0x53fc47
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x2c], ecx
jmp 0x53fc50
mov eax, dword [esi + 0x58]
add eax, dword [esi + 0x10]
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x10]
mov ecx, esi
add dword [esi + 0x40], eax
mov eax, dword [esi + 0x14]
adc dword [esi + 0x44], eax
sub esp, 0xc
call fcn.00414270
xor eax, eax
cmp dword [esi + 0x24], eax
push 0xffffffffffffffff
sete al
push ebx
mov dword [esi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [edi]
mov ecx, edx
cmp dword [edx + 0x38], 0x3ee
jne 0x53fb93
jmp 0x53fc9b
mov dword [edi + 0x60], 0
mov eax, dword [ecx + 0x58]
mov dword [ecx + 0x24], 1
mov dword [ecx + 0x2c], eax
mov ecx, dword [edi + 4]
mov dword [edi + 0x60], 0
test ecx, ecx
je 0x53fcbc
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 4], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x60], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret