Function at 0x46f710
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x6c
push 0xffffffffffffffff
push 0x4aacc3
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x4c8698]
xor eax, ebp
mov dword [ebp + 0x68], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
cmp dword [edi + 0x14], 0
je 0x46fc95
mov ebx, 8
cmp dword [edi + 0x18], ebx
lea esi, [edi + 4]
jb 0x46f763
mov eax, dword [esi]
jmp 0x46f765
mov eax, esi
test eax, eax
je 0x46f7a3
cmp word [eax], 0
je 0x46f7a3
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46f7a3
test al, 0x10
jne 0x46f7a3
cmp dword [edi + 0x18], ebx
jb 0x46f786
mov esi, dword [esi]
test esi, esi
je 0x46fc95
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete al
test al, al
je 0x46fc95
push edi
lea ecx, [ebp + 0x3c]
mov dword [ebp - 4], 0
call fcn.00440f20
lea ecx, [ebp + 0x3c]
mov byte [ebp - 4], 1
call fcn.00440960
test al, al
je 0x46fc89
push 1
push 3
lea ecx, [ebp - 0x98]
call fcn.00407a30
lea eax, [ebp - 0x90]
push 0x4b2c34
push eax
mov byte [ebp - 4], 2
call fcn.0043fa80
add esp, 8
push 9
push eax
call fcn.0043fc90
add esp, 8
push 6
mov ecx, eax
call fcn.0043fee0
push 9
push eax
call fcn.0043fc90
mov ecx, dword [0x4cadb8]
add esp, 8
push ecx
mov ecx, eax
call fcn.004077f0
push 0x4b1780
push eax
call fcn.0043fa80
add esp, 8
lea edx, [ebp - 0x90]
push str.DPNH
push edx
call fcn.0043fa80
add esp, 8
push 9
push eax
call fcn.0043fc90
add esp, 8
push 6
mov ecx, eax
call fcn.0043fee0
push 9
push eax
call fcn.0043fc90
mov ecx, dword [0x4cadbc]
add esp, 8
push ecx
mov ecx, eax
call fcn.004077f0
push 0x4b1780
push eax
call fcn.0043fa80
add esp, 8
lea edx, [ebp - 0x90]
push str.SDPC
push edx
call fcn.0043fa80
add esp, 8
push 9
push eax
call fcn.0043fc90
add esp, 8
push 6
mov ecx, eax
call fcn.0043fee0
push 9
push eax
call fcn.0043fc90
mov ecx, dword [0x4cadc0]
add esp, 8
push ecx
mov ecx, eax
call fcn.004077f0
push 0x4b1780
push eax
call fcn.0043fa80
add esp, 8
push str.SEPC
lea edx, [ebp - 0x90]
push edx
call fcn.0043fa80
add esp, 8
push 9
push eax
call fcn.0043fc90
add esp, 8
push 6
mov ecx, eax
call fcn.0043fee0
push 9
push eax
call fcn.0043fc90
mov ecx, dword [0x4cadc4]
add esp, 8
push ecx
mov ecx, eax
call fcn.004077f0
push 0x4b1780
push eax
call fcn.0043fa80
add esp, 8
lea edx, [ebp - 0x90]
push str.MWSFMH
push edx
call fcn.0043fa80
add esp, 8
push 9
push eax
call fcn.0043fc90
add esp, 8
push 6
mov ecx, eax
call fcn.0043fee0
push 9
push eax
call fcn.0043fc90
mov ecx, dword [0x4cadc8]
add esp, 8
push ecx
mov ecx, eax
call fcn.004077f0
push 0x4b1780
push eax
call fcn.0043fa80
add esp, 8
lea edx, [ebp - 0x90]
push str.MWSFTH
push edx
call fcn.0043fa80
add esp, 8
push 9
push eax
call fcn.0043fc90
add esp, 8
push 6
mov ecx, eax
call fcn.0043fee0
push 9
push eax
call fcn.0043fc90
mov ecx, dword [0x4cadcc]
add esp, 8
push ecx
mov ecx, eax
call fcn.004077f0
push 0x4b1780
push eax
call fcn.0043fa80
add esp, 8
lea edx, [ebp - 0x90]
push str.SWSC
push edx
call fcn.0043fa80
add esp, 8
push 9
push eax
call fcn.0043fc90
add esp, 8
push 6
mov ecx, eax
call fcn.0043fee0
push 9
push eax
call fcn.0043fc90
mov ecx, dword [0x4cadd0]
add esp, 8
push ecx
mov ecx, eax
call fcn.004077f0
push 0x4b1780
push eax
call fcn.0043fa80
add esp, 8
lea edx, [ebp - 0x90]
push str.AWSC
push edx
call fcn.0043fa80
add esp, 8
push 9
push eax
call fcn.0043fc90
add esp, 8
push 6
mov ecx, eax
call fcn.0043fee0
push 9
push eax
call fcn.0043fc90
mov ecx, dword [0x4cadd4]
add esp, 8
push ecx
mov ecx, eax
call fcn.004077f0
push 0x4b1780
push eax
call fcn.0043fa80
add esp, 8
lea edx, [ebp - 0x90]
push str.AWSFMH
push edx
call fcn.0043fa80
add esp, 8
push 9
push eax
call fcn.0043fc90
add esp, 8
push 6
mov ecx, eax
call fcn.0043fee0
push 9
push eax
call fcn.0043fc90
mov ecx, dword [0x4cadd8]
add esp, 8
push ecx
mov ecx, eax
call fcn.004077f0
push 0x4b1780
push eax
call fcn.0043fa80
add esp, 8
lea edx, [ebp - 0x90]
push 0x4b2bf0
push edx
call fcn.0043fa80
add esp, 8
push 9
push eax
call fcn.0043fc90
add esp, 8
push 6
mov ecx, eax
call fcn.0043fee0
push 9
push eax
call fcn.0043fc90
mov ecx, dword [0x4caddc]
add esp, 8
push ecx
mov ecx, eax
call fcn.004077f0
push 0x4b1780
push eax
call fcn.0043fa80
add esp, 8
lea edx, [ebp - 0x90]
push 0x4b2bec
push edx
call fcn.0043fa80
add esp, 8
push 9
push eax
call fcn.0043fc90
add esp, 8
push 6
mov ecx, eax
call fcn.0043fee0
push 9
push eax
call fcn.0043fc90
mov ecx, dword [0x4cade0]
add esp, 8
push ecx
mov ecx, eax
call fcn.004077f0
push 0x4b1780
push eax
call fcn.0043fa80
add esp, 8
lea edx, [ebp - 0x90]
push 0x4b2be8
push edx
call fcn.0043fa80
add esp, 8
push 9
push eax
call fcn.0043fc90
add esp, 8
push 2
mov ecx, eax
call fcn.0043fee0
push 9
push eax
call fcn.0043fc90
movzx ecx, byte [0x4cade4]
add esp, 8
push ecx
mov ecx, eax
call fcn.0046f5b0
push 0x4b1780
push eax
call fcn.0043fa80
add esp, 8
lea edx, [ebp - 0x90]
push 0x4b2be4
push edx
call fcn.0043fa80
add esp, 8
push 9
push eax
call fcn.0043fc90
add esp, 8
push 2
mov ecx, eax
call fcn.0043fee0
push 9
push eax
call fcn.0043fc90
movzx ecx, byte [0x4cade5]
add esp, 8
push ecx
mov ecx, eax
call fcn.0046f5b0
push 0x4b1780
push eax
call fcn.0043fa80
add esp, 8
lea edx, [ebp + 0x1c]
xor ebx, ebx
push edx
lea ecx, [ebp - 0x98]
mov dword [ebp + 0x38], ebx
call fcn.00405000
mov esi, eax
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 3
call fcn.00405000
mov esi, dword [esi + 0x14]
mov edi, 0x10
cmp dword [eax + 0x18], edi
mov byte [ebp - 4], 4
jb 0x46fc1e
mov eax, dword [eax + 4]
jmp 0x46fc21
add eax, 4
lea ecx, [ebp + 0x38]
push ecx
push esi
push eax
lea ecx, [ebp + 0x3c]
call fcn.00440ad0
cmp dword [ebp + 0x18], edi
jb 0x46fc40
mov edx, dword [ebp + 4]
push edx
call fcn.00470259
add esp, 4
cmp dword [ebp + 0x34], edi
mov esi, 0xf
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x14], ebx
mov byte [ebp + 4], 0
jb 0x46fc60
mov eax, dword [ebp + 0x20]
push eax
call fcn.00470259
add esp, 4
lea ecx, [ebp - 0x44]
mov dword [ebp + 0x34], esi
mov dword [ebp + 0x30], ebx
mov byte [ebp + 0x20], 0
mov byte [ebp - 4], 1
call fcn.00402e90
lea ecx, [ebp - 0x44]
push ecx
mov dword [ebp - 0x44], 0x4af4f8
call fcn.0048ea57
add esp, 4
lea ecx, [ebp + 0x3c]
mov byte [ebp - 4], 0
call fcn.00440c70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x68]
xor ecx, ebp
call fcn.00470220
add ebp, 0x6c
mov esp, ebp
pop ebp
ret