Function at 0x506510
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69bb90
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x729140]
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
mov eax, dword [ebp + 0xc]
mov ecx, eax
mov edx, dword [ebp + 8]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], eax
call fcn.004142e0
mov ecx, edx
call fcn.0040cdb0
test al, al
jne 0x5066d4
mov ecx, edi
call fcn.0040cdb0
test al, al
jne 0x5066d4
cmp byte [edi + 0x24], al
jne 0x50666b
push edi
lea eax, [ebp - 0x38]
push eax
call fcn.00508290
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x18], 0
mov word [ebp - 0x14], 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x18]
call fcn.004e9de0
xorps xmm0, xmm0
lea eax, [ebp - 0x18]
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov byte [ebp - 0x1c], 0
test eax, eax
jne 0x5065ca
xor bl, bl
jmp 0x5065e8
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x5065e2
cmp eax, 0x80
je 0x5065e2
xor bl, bl
jmp 0x5065e8
mov byte [ebp - 0x14], 1
mov bl, 1
mov byte [ebp - 0x1c], bl
mov byte [ebp - 4], 2
lea eax, [ebp - 0x39]
push eax
lea eax, [edi + 0x18]
mov byte [ebp - 0x39], 0
push eax
push edi
call fcn.00507c90
test al, al
jne 0x506618
cmp byte [ebp - 0x39], al
je 0x506618
mov ecx, edi
call fcn.00405860
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 1
test bl, bl
je 0x506632
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x50662e
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x506652
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00405870
mov byte [edi + 0x24], 1
mov esi, dword [edi + 0x18]
mov ecx, dword [edi + 0x1c]
cmp esi, ecx
je 0x5066d4
xor edx, edx
sub ecx, esi
mov dword [ebp - 0x14], edx
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x5066d4
xor ebx, ebx
add esi, ebx
mov ecx, esi
call fcn.00405860
mov ecx, dword [ebp - 0x40]
push eax
call fcn.00405860
push eax
call fcn.00657374
add esp, 8
test eax, eax
je 0x5066f4
mov ecx, dword [edi + 0x1c]
mov eax, 0x4ec4ec4f
mov esi, dword [edi + 0x18]
add ebx, 0x68
inc dword [ebp - 0x14]
sub ecx, esi
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x14], eax
jb 0x506691
xor eax, eax
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.00634bf3
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp - 0x40]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x20]
movlpd qword [ebp - 0x20], xmm0
push eax
push ebx
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x50], xmm0
call fcn.00508430
test al, al
je 0x5066d4
mov eax, dword [esi + 0x48]
cmp eax, dword [ebp - 0x20]
jne 0x5066d4
mov eax, dword [esi + 0x4c]
cmp eax, dword [ebp - 0x1c]
jne 0x5066d4
mov eax, dword [esi + 0x50]
cmp eax, dword [ebp - 0x18]
jne 0x5066d4
mov eax, dword [esi + 0x54]
cmp eax, dword [ebp - 0x14]
jne 0x5066d4
mov eax, dword [esi + 0x58]
cmp eax, dword [ebp - 0x50]
jne 0x5066d4
mov eax, dword [esi + 0x5c]
cmp eax, dword [ebp - 0x4c]
jne 0x5066d4
cmp byte [edi + 0x25], 0
je 0x5067cb
lea ecx, [esi + 0x30]
call fcn.0040cdb0
test al, al
jne 0x5066d4
lea ecx, [ebp - 0x38]
call fcn.004058d0
mov dword [ebp - 4], 3
lea eax, [ebp - 0x38]
push eax
push ebx
call fcn.005084f0
test al, al
jne 0x50678a
lea ecx, [ebp - 0x38]
call fcn.004142e0
lea ecx, [esi + 0x30]
call fcn.00405860
push eax
lea ecx, [ebp - 0x38]
call fcn.00405860
push eax
call fcn.00657374
add esp, 8
test eax, eax
je 0x5067bc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00405870
jmp 0x5066d4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00405870
mov ecx, dword [ebp - 0x44]
lea eax, [esi + 0x18]
push eax
call fcn.00414300
mov eax, dword [esi + 0x60]
jmp 0x5066d6