Function at 0x418490
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x474e05
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4d9770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea edx, [esi + 0x33c5c]
mov dword [ebp - 0x28], 0
mov ecx, edx
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4184e2
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0040da40
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x48]
call fcn.00417820
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
cmovae eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x418669
test al, 0x10
je 0x418669
lea ecx, [ebp - 0x48]
call fcn.0040a200
cmp dword [esi + 0x400], 0
je 0x418671
cmp dword [esi + 0x35c94], 0
je 0x418671
push str.DeleteFileRecursive
push 1
push dword [0x514990]
call fcn.00449450
add esp, 0xc
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x48]
push eax
call fcn.00417820
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 0x47dae0
push 0x17
push 0
push 0x48ea38
mov byte [ebp - 4], 2
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [ebp - 0x2c]
push 0x614
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
cmp dword [ebp - 0x34], 8
lea ecx, [ebp - 0x30]
push ecx
push 0x47aff8
lea eax, [ebp - 0x48]
mov dword [ebp - 0x30], 0
cmovae eax, dword [ebp - 0x48]
push 0
push eax
mov byte [ebp - 4], 4
call dword [sym.imp.SHELL32.dll_SHCreateItemFromParsingName]
mov eax, dword [ebp - 0x2c]
push 0
push dword [ebp - 0x30]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 6
mov dword [ebp - 0x30], 0
test ecx, ecx
je 0x4185f3
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x2c]
push eax
mov byte [ebp - 4], 4
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 7
test eax, eax
je 0x418620
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 8
test eax, eax
je 0x418631
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x418671
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41865d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4186c2
push edx
push ecx
call fcn.0044d09e
add esp, 8
jmp 0x418671
lea ecx, [ebp - 0x48]
call fcn.0040a200
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4186a7
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41869d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4186c7
push edx
push ecx
call fcn.0044d09e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044d06d
mov esp, ebp
pop ebp
ret
call fcn.00458530
call fcn.00458530
int3