Function at 0x4a67d0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5245f1
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x569564]
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, dword [ebp + 8]
lea eax, [ebp - 0x74]
push 0x64
push 0
push eax
mov dword [ebp - 0xc8], edi
call fcn.004e9750
sub esp, 0xc
lea edx, [edi + 4]
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x4a6834
mov eax, dword [ecx]
jmp 0x4a6836
mov eax, ecx
push 0xffffffffffffffff
xor esi, esi
push esi
push edx
mov word [eax], si
call fcn.00409070
lea eax, [ebp - 0xa4]
push eax
call fcn.00456ca6
add esp, 0x1c
cmp dword [eax + 0x14], 0x10
jb 0x4a685b
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x74]
push 0x54ec2c
push eax
call fcn.0040d690
mov eax, dword [ebp - 0x90]
add esp, 0xc
cmp eax, 0x10
jb 0x4a688b
inc eax
lea ecx, [ebp - 0xa4]
push eax
push dword [ebp - 0xa4]
call fcn.0040550e
cmp byte [ebp - 0x74], 0
mov dword [ebp - 0x78], 0xf
mov dword [ebp - 0x7c], esi
mov byte [ebp - 0x8c], 0
jne 0x4a68a6
xor ecx, ecx
jmp 0x4a68b9
lea ecx, [ebp - 0x74]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a68b0
sub ecx, edx
push ecx
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x8c]
call fcn.00404c71
cmp dword [edi + 0xc0], 8
lea esi, [edi + 0xac]
mov dword [ebp - 4], 0
jb 0x4a68e3
mov eax, dword [esi]
jmp 0x4a68e5
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebx, ebx
nop
cmp dword [esi + 0x14], 8
jb 0x4a68fa
mov eax, dword [esi]
jmp 0x4a68fc
mov eax, esi
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.005162f0
add esp, 8
mov edi, eax
mov ecx, dword [ebp - 0xc8]
mov byte [ebp - 4], 1
cmp dword [ecx + 0x48], 8
jb 0x4a6923
mov ecx, dword [ecx + 0x34]
jmp 0x4a6926
add ecx, 0x34
push ecx
lea eax, [ebp - 0xa4]
push eax
call fcn.005162f0
push edi
push eax
mov byte [ebp - 4], 2
call fcn.0040e540
mov ecx, dword [ebp - 0x90]
add esp, 0x10
mov byte [ebp - 0xbd], al
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x4a6998
mov edx, dword [ebp - 0xa4]
inc ecx
cmp ecx, 0x1000
jb 0x4a698f
test dl, 0x1f
jne 0x4a6a64
mov eax, dword [edx - 4]
cmp eax, edx
jae 0x4a6a64
sub edx, eax
cmp edx, 4
jb 0x4a6a64
cmp edx, 0x23
ja 0x4a6a64
mov edx, eax
push edx
call fcn.0047d31d
add esp, 4
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x90], 0xf
mov dword [ebp - 0x94], 0
mov byte [ebp - 0xa4], 0
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x4a69fb
mov ecx, dword [ebp - 0xbc]
inc eax
cmp eax, 0x1000
jb 0x4a69f2
test cl, 0x1f
jne 0x4a6a64
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x4a6a64
sub ecx, eax
cmp ecx, 4
jb 0x4a6a64
cmp ecx, 0x23
ja 0x4a6a64
mov ecx, eax
push ecx
call fcn.0047d31d
add esp, 4
mov al, byte [ebp - 0xbd]
test al, al
jne 0x4a6a0f
inc ebx
cmp ebx, 3
jl 0x4a68f0
xor edi, edi
test al, al
je 0x4a6b2a
cmp dword [esi + 0x14], 8
jb 0x4a6a21
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a6b2a
mov ebx, dword [ebp - 0xc8]
push ebx
call fcn.004a5bb0
add esp, 4
test eax, eax
je 0x4a6b2a
push 1
push 2
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], edi
cmp dword [ecx + 0x14], 0x10
jb 0x4a6a69
mov eax, dword [ecx]
jmp 0x4a6a6b
call fcn.004f25e8
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x8c]
push 0
push eax
call fcn.00404cea
mov ecx, 0x56ed2c
call fcn.004a8690
cmp dword [ebp - 0x7c], edi
je 0x4a6ab3
lea eax, [ebp - 0x8c]
push eax
push ebx
call fcn.004a6fd0
mov edi, eax
add esp, 8
test edi, edi
je 0x4a6ab3
lea eax, [ebx + 4]
push eax
call fcn.004a8ff0
add esp, 4
push 1
jmp 0x4a6ab5
push 0
push 3
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x4a6ad4
mov eax, dword [ecx]
jmp 0x4a6ad6
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x8c]
push 0
push eax
call fcn.00404cea
mov ecx, 0x56ed2c
call fcn.004a8690
push ebx
call fcn.004a7300
add esp, 4
test eax, eax
lea eax, [ebp - 0x8c]
je 0x4a6b18
push 1
push 4
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x10], 0
jmp 0x4a6b3c
push 0
push 4
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x10], 0
jmp 0x4a6b3c
push 0
push 2
sub esp, 0x18
lea eax, [ebp - 0x8c]
mov ecx, esp
mov dword [ecx + 0x10], edi
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
push eax
mov byte [ecx], 0
call fcn.00404cea
mov ecx, 0x56ed2c
call fcn.004a8690
sub esp, 0x18
mov ecx, esp
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x549961
mov byte [ecx], 0
call fcn.00404c71
lea eax, [ebp - 0x8c]
mov ecx, 0x56ed2c
push eax
call fcn.004a8400
mov eax, dword [ebp - 0x78]
cmp eax, 0x10
jb 0x4a6ba8
inc eax
lea ecx, [ebp - 0x8c]
push eax
push dword [ebp - 0x8c]
call fcn.0040550e
mov eax, edi
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.004ac267
mov esp, ebp
pop ebp
ret