Function at 0x4f0ad0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cbb0f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x284
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
push 1
call fcn.004eeb70
test eax, eax
jne 0x4f0b19
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 4
mov edi, dword [ebp + 8]
push 1
mov ecx, edi
call fcn.004eeb70
test eax, eax
jne 0x4f0b48
mov ecx, esi
call fcn.004eecc0
mov eax, 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor ebx, ebx
lea ecx, [ebp - 0x150]
push ebx
call fcn.004ee9a0
lea eax, [esi + 0x10]
push str..tmp
lea ecx, [ebp - 0x14]
push eax
push ecx
mov dword [ebp - 4], ebx
call fcn.00593970
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 1
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x150]
push eax
call fcn.004eeb50
push 2
lea ecx, [ebp - 0x150]
call fcn.004eeb70
test eax, eax
jne 0x4f0bdc
mov ecx, esi
call fcn.004eecc0
mov ecx, edi
call fcn.004eecc0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.005936db
lea ecx, [ebp - 0x150]
mov dword [ebp - 4], 0xffffffff
call fcn.004eea70
mov eax, 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebx
push 0x1000
lea ecx, [esi + 0x14]
push 1
push ecx
lea ecx, [ebp - 0xf0]
mov dword [esi + 0x34], ebx
call fcn.00597946
push ebx
push 0x1000
add edi, 0x14
push 1
push edi
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 2
call fcn.00597946
push ebx
push 0x1000
lea edx, [ebp - 0x13c]
push ebx
push edx
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 3
call fcn.00597946
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.00593d4b
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 6
call fcn.00500050
lea ecx, [ebp - 0x1f0]
mov byte [ebp - 4], 7
call fcn.00500050
mov byte [ebp - 4], 8
xor edi, edi
mov eax, dword [esi + 8]
push 0xfffffc00
push eax
lea ecx, [ebp - 0xf0]
call fcn.00597e10
cmp eax, ebx
jne 0x4f0c7a
mov edi, 1
jmp 0x4f0c92
mov edx, dword [esi + 8]
lea ecx, [ebp - 0x290]
push 4
push ecx
push edx
mov ecx, esi
call fcn.004f1e10
cmp eax, ebx
je 0x4f0c5b
mov eax, dword [esi + 0xc]
push 0xfffffc00
push eax
lea ecx, [ebp - 0xac]
call fcn.00597e10
cmp eax, ebx
je 0x4f0e24
mov edx, dword [esi + 0xc]
lea ecx, [ebp - 0x1f0]
push 4
push ecx
push edx
mov ecx, esi
call fcn.004f1e10
cmp eax, ebx
je 0x4f0c92
cmp edi, ebx
jne 0x4f0e1f
lea eax, [ebp - 0x1e8]
lea ecx, [ebp - 0x288]
push eax
call fcn.0056b1f1
cmp eax, ebx
je 0x4f0d2c
mov ecx, dword [esi + 8]
push ecx
lea ecx, [ebp - 0x68]
call fcn.00597df3
inc dword [esi + 0x34]
mov edx, dword [esi + 8]
push 0xfffffc00
push edx
lea ecx, [ebp - 0xf0]
call fcn.00597e10
cmp eax, ebx
jne 0x4f0d12
mov edi, 1
jmp 0x4f0cc6
mov ecx, dword [esi + 8]
lea eax, [ebp - 0x290]
push 4
push eax
push ecx
mov ecx, esi
call fcn.004f1e10
cmp eax, ebx
je 0x4f0cf3
jmp 0x4f0cc6
lea edx, [ebp - 0x1e8]
lea ecx, [ebp - 0x288]
push edx
call fcn.0056b227
cmp eax, ebx
je 0x4f0d90
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x68]
push eax
call fcn.00597df3
inc dword [esi + 0x34]
mov ecx, dword [esi + 0xc]
push 0xfffffc00
push ecx
lea ecx, [ebp - 0xac]
call fcn.00597e10
cmp eax, ebx
jne 0x4f0d73
mov edi, 2
jmp 0x4f0cc6
mov eax, dword [esi + 0xc]
lea edx, [ebp - 0x1f0]
push 4
push edx
push eax
mov ecx, esi
call fcn.004f1e10
cmp eax, ebx
je 0x4f0d51
jmp 0x4f0cc6
mov ecx, dword [esi + 8]
push ecx
lea ecx, [ebp - 0x68]
call fcn.00597df3
inc dword [esi + 0x34]
mov edx, dword [esi + 8]
push 0xfffffc00
push edx
lea ecx, [ebp - 0xf0]
call fcn.00597e10
cmp eax, ebx
jne 0x4f0dc3
mov eax, dword [esi + 8]
mov edi, 1
mov byte [eax], bl
jmp 0x4f0ddb
mov edx, dword [esi + 8]
lea ecx, [ebp - 0x290]
push 4
push ecx
push edx
mov ecx, esi
call fcn.004f1e10
cmp eax, ebx
je 0x4f0d9f
mov eax, dword [esi + 0xc]
push 0xfffffc00
push eax
lea ecx, [ebp - 0xac]
call fcn.00597e10
cmp eax, ebx
jne 0x4f0e02
mov ecx, dword [esi + 0xc]
mov edi, 2
mov byte [ecx], bl
jmp 0x4f0cc6
mov eax, dword [esi + 0xc]
lea edx, [ebp - 0x1f0]
push 4
push edx
push eax
mov ecx, esi
call fcn.004f1e10
cmp eax, ebx
je 0x4f0ddb
jmp 0x4f0cc6
cmp edi, 2
jne 0x4f0e55
mov eax, dword [esi + 8]
cmp byte [eax], bl
je 0x4f0e37
push eax
lea ecx, [ebp - 0x68]
call fcn.00597df3
inc dword [esi + 0x34]
mov ecx, dword [esi + 8]
push 0xfffffc00
push ecx
lea ecx, [ebp - 0xf0]
call fcn.00597e10
cmp eax, ebx
je 0x4f0e86
mov edx, dword [esi + 8]
push edx
jmp 0x4f0e2c
mov eax, dword [esi + 0xc]
cmp byte [eax], bl
je 0x4f0e68
push eax
lea ecx, [ebp - 0x68]
call fcn.00597df3
inc dword [esi + 0x34]
mov eax, dword [esi + 0xc]
push 0xfffffc00
push eax
lea ecx, [ebp - 0xac]
call fcn.00597e10
cmp eax, ebx
je 0x4f0e86
mov ecx, dword [esi + 0xc]
push ecx
jmp 0x4f0e5d
lea ecx, [ebp - 0xac]
call fcn.00597aaa
lea ecx, [ebp - 0xf0]
call fcn.00597aaa
lea ecx, [ebp - 0x68]
call fcn.00597aaa
mov ecx, dword [ebp + 8]
call fcn.004eecc0
mov ecx, esi
call fcn.004eecc0
lea ecx, [ebp - 0x150]
call fcn.004eecc0
add esi, 0x10
push str..bak
lea edx, [ebp - 0x18]
push esi
push edx
call fcn.00593970
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0x18]
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileA]
push ecx
push eax
call edi
mov esi, dword [esi]
mov edx, dword [ebp - 0x14]
push esi
push edx
call edi
lea ecx, [ebp - 0x18]
call fcn.005936db
lea ecx, [ebp - 0x1f0]
mov byte [ebp - 4], 7
call fcn.00500180
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 6
call fcn.00500180
mov dword [ebp - 4], 4
call fcn.00593d89
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 3
call fcn.00597a22
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 2
call fcn.00597a22
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 1
call fcn.00597a22
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.005936db
lea ecx, [ebp - 0x150]
mov dword [ebp - 4], 0xffffffff
call fcn.004eea70
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4