Function at 0x507570
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b1fc6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
push 1
mov dword [ebp - 0x24], edi
call fcn.00506600
test eax, eax
je 0x50787e
lea ecx, [ebp - 0x38]
call fcn.005760db
lea eax, [edi + 0x10]
push str..tmp
lea ecx, [ebp - 0x18]
push eax
push ecx
mov dword [ebp - 4], 0
call fcn.00575d7d
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.0057700b
mov edx, dword [ebp - 0x18]
push 0
push 0x1021
push edx
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.00576150
push 0
push 0x1000
lea eax, [ebp - 0x38]
push 0
push eax
lea ecx, [ebp - 0x88]
call fcn.00579d2d
mov ecx, dword [0x614cb0]
mov dword [ebp - 0x14], ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
lea edx, [esi + 4]
push edx
call fcn.0057585d
mov bl, 6
mov byte [ebp - 4], bl
mov ecx, dword [edi + 0x28]
lea eax, [ebp - 0x14]
push eax
call fcn.0057a2a9
test eax, eax
je 0x507757
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x507723
mov ecx, dword [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0056d3ac
test eax, eax
jl 0x507723
lea ecx, [ebp - 0x128]
call fcn.0051d950
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x128]
push 0xffffffffffffffff
push edx
push eax
mov ecx, edi
mov byte [ebp - 4], 7
call fcn.00509810
test eax, eax
je 0x507715
mov ecx, dword [ebp - 0x118]
mov eax, dword [esi + 0x10]
cmp eax, ecx
jne 0x507715
fld qword [esi + 8]
fcomp qword [ebp - 0x120]
fnstsw ax
test ah, 0x40
je 0x507715
cmp dword [esi + 0x10], ecx
jne 0x507715
fld qword [esi + 8]
fcomp qword [ebp - 0x120]
fnstsw ax
test ah, 0x40
je 0x507715
mov ecx, dword [ebp - 0x124]
mov eax, dword [esi + 4]
push ecx
push eax
call fcn.0055724d
add esp, 8
test eax, eax
jne 0x507715
mov edx, dword [ebp - 0xcc]
mov eax, dword [esi + 0x5c]
push edx
push eax
call fcn.0055724d
add esp, 8
test eax, eax
jne 0x507715
mov eax, dword [ebp + 0xc]
dec eax
mov dword [ebp + 0xc], eax
je 0x507702
add esi, 0xa0
lea ecx, [ebp - 0x20]
lea eax, [esi + 4]
push eax
call fcn.00575c21
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], bl
call fcn.0051da80
jmp 0x507625
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], bl
call fcn.0051da80
lea ecx, [ebp - 0x14]
push 0x600f14
lea edx, [ebp + 8]
push ecx
push edx
call fcn.00575d7d
mov eax, dword [eax]
lea ecx, [ebp - 0x88]
push eax
mov byte [ebp - 4], 8
call fcn.0057a1da
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.00575ae8
jmp 0x507625
lea ecx, [ebp - 0x88]
call fcn.00579e91
lea ecx, [ebp - 0x38]
call fcn.00576480
mov ecx, edi
call fcn.00506720
lea esi, [edi + 0x10]
push str..bak
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.00575d7d
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [ebp - 0x1c]
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileA]
push edx
push eax
call edi
mov esi, dword [esi]
mov eax, dword [ebp - 0x18]
push esi
push eax
call edi
lea ecx, [ebp - 0x1c]
call fcn.00575ae8
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.00575ae8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00575ae8
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.00579e09
mov dword [ebp - 4], 1
call fcn.00577049
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00575ae8
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.0057610d
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8