Function at 0x421a80
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4867e8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x49c33c]
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 edi, ecx
push 0xfffffffffffffff1
push dword [edi + 0x17c]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
cmp byte [edi + 0x164], 0
lea eax, [edi + 0x14c]
mov dword [ebp - 0x54], eax
je 0x421ad4
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
nop dword [eax + eax]
mov edx, dword [edi + 0x16c]
mov ecx, edx
mov esi, dword [edi + 0x170]
mov ebx, dword [edi + 0x174]
lea eax, [ecx + 1]
mov dword [ebp - 0x44], eax
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x421b00
sub ecx, dword [ebp - 0x44]
cmp byte [edx + ecx - 1], 0x3f
je 0x421b4a
lea eax, [ebp - 0x40]
push eax
push edx
call fcn.00463966
add esp, 8
test eax, eax
jne 0x421b4a
push eax
call fcn.00461bfb
add esp, 4
sub eax, dword [ebp - 0x28]
sbb edx, dword [ebp - 0x24]
cmp ebx, edx
jg 0x421b48
jl 0x421b3b
cmp esi, eax
jae 0x421b48
xorps xmm0, xmm0
movlpd qword [ebp - 0x48], xmm0
mov esi, dword [ebp - 0x48]
jmp 0x421b4a
sub esi, eax
cmp byte [edi + 0x164], 0
lea ebx, [edi + 0x14c]
je 0x421b60
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
imul eax, esi, 0x3e8
push eax
push dword [edi + 0x168]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov cl, byte [edi + 0x164]
test cl, cl
je 0x421b87
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov cl, byte [ebx + 0x18]
mov eax, dword [edi + 0x16c]
test eax, eax
je 0x421ca8
mov edx, eax
lea esi, [edx + 1]
nop word [eax + eax]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x421ba0
sub edx, esi
cmp byte [eax + edx - 1], 0x3f
jne 0x421c4e
push 0
call fcn.00461bfb
mov ecx, dword [edi + 0x16c]
add esp, 4
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x50], eax
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x421bd0
sub ecx, edx
lea eax, [ecx + 0x20]
push eax
call fcn.0042f8b9
mov esi, eax
lea eax, [ebp - 0x50]
push eax
call fcn.004640b2
mov ebx, dword [edi + 0x16c]
mov edx, eax
mov ecx, ebx
add esp, 8
lea eax, [ecx + 1]
mov dword [ebp - 0x44], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x421c00
push dword [edx]
mov eax, dword [edx + 0x10]
push dword [edx + 4]
sub ecx, dword [ebp - 0x44]
inc eax
push dword [edx + 8]
push dword [edx + 0xc]
push eax
mov eax, dword [edx + 0x14]
add eax, 0x76c
push eax
push ebx
lea eax, [ecx - 1]
push eax
push str._.s__04d._02d._02d__02d._02d._02d
push esi
call fcn.00406100
add esp, 0x28
mov ecx, edi
push 0
push esi
call fcn.00421690
push esi
call fcn.0042f876
add esp, 4
jmp 0x421ae0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x421c51
sub eax, edx
add eax, 5
push eax
call fcn.0042f8b9
push dword [edi + 0x16c]
mov esi, eax
push str._s.new
push esi
call fcn.00406100
add esp, 0x10
mov ecx, edi
push 0
push esi
call fcn.00421690
push dword [edi + 0x16c]
call fcn.004639fd
push dword [edi + 0x16c]
push esi
call fcn.00463a4a
push esi
call fcn.0042f876
add esp, 0x10
jmp 0x421ae0
test cl, cl
je 0x421cb3
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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.0042f865
mov esp, ebp
pop ebp
ret