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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c835
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4ce6a8]
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 + 0x32444]
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 0x4137e2
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0040a4c0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x48]
call fcn.00412970
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 0x413969
test al, 0x10
je 0x413969
lea ecx, [ebp - 0x48]
call fcn.00412e60
cmp dword [esi + 0x400], 0
je 0x413971
cmp dword [esi + 0x3447c], 0
je 0x413971
push str.DeleteFileRecursive
push 1
push dword [0x50c768]
call fcn.00444090
add esp, 0xc
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x48]
push eax
call fcn.00412970
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 0x4756b8
push 0x17
push 0
push 0x483ddc
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 0x472cc0
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 0x4138f3
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 0x413920
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 8
test eax, eax
je 0x413931
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x413971
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41395d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4139c2
push edx
push ecx
call fcn.00447cee
add esp, 8
jmp 0x413971
lea ecx, [ebp - 0x48]
call fcn.00412e60
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4139a7
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41399d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4139c7
push edx
push ecx
call fcn.00447cee
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.00447cbd
mov esp, ebp
pop ebp
ret
call fcn.00452900
call fcn.00452900
int3