Function at 0x413752
Capabilities:
Get file attributes
Move file
Set file attributes

Disassembly:
push 0x154
mov eax, 0x62bebc
call fcn.004e5a7f
mov dword [ebp - 0x150], edx
mov esi, ecx
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ebx, ebx
push esi
call edi
test al, 1
je 0x413783
push esi
call edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
xor ecx, ecx
inc ecx
test eax, eax
js 0x4138c7
lea eax, [ebp - 0x158]
push eax
push 0x63fb10
push ecx
push 0
push 0x63fb80
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4138c1
mov ecx, dword [ebp - 0x158]
lea edx, [ebp - 0x154]
push edx
push 0x63fba0
push ecx
mov eax, dword [ecx]
call dword [eax]
test eax, eax
js 0x4138b5
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
and dword [ebp - 0x160], ebx
lea ecx, [ebp - 0x160]
and dword [ebp - 0x15c], ebx
push eax
push esi
call fcn.0041920b
and dword [ebp - 4], 0
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x160]
call fcn.0041933c
mov byte [ebp - 4], 2
cmp dword [ebp - 0x15c], 0
je 0x413826
push dword [ebp - 0x15c]
call fcn.004e4900
pop ecx
mov edx, dword [ebp - 0x154]
cmp dword [ebp - 0x138], 8
push 2
mov eax, dword [edx]
mov ecx, dword [eax + 0x14]
lea eax, [ebp - 0x14c]
cmovae eax, dword [ebp - 0x14c]
push eax
push edx
call ecx
push dword [ebp - 0x150]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x41386d
mov ecx, dword [ebp - 0x158]
push dword [ebp - 0x150]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov edx, dword [ebp - 0x154]
cmp dword [ebp - 0x138], 8
push 1
mov eax, dword [edx]
mov ecx, dword [eax + 0x18]
lea eax, [ebp - 0x14c]
cmovae eax, dword [ebp - 0x14c]
push eax
push edx
call ecx
test eax, eax
push 1
pop eax
cmovns ebx, eax
mov eax, dword [ebp - 0x154]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14c]
call fcn.0040918d
mov eax, dword [ebp - 0x158]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0x104
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.004fc480
add esp, 0xc
lea eax, [ebp - 0x11c]
push 0x103
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathA]
test ebx, ebx
je 0x4139bb
push 0x6c2060
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x4139bb
and dword [ebp - 0x124], 0
lea ecx, [ebp - 0x134]
push esi
mov dword [ebp - 0x120], 0xf
mov byte [ebp - 0x134], 0
call fcn.004060b1
push ecx
push 0x6c206c
lea ecx, [ebp - 0x134]
mov dword [ebp - 4], 3
call fcn.0040529d
mov dword [ebp - 0x150], eax
cmp eax, 0xffffffff
je 0x4139b0
push ecx
push 0x6c1fb8
lea ecx, [ebp - 0x134]
call fcn.0040529d
cmp eax, 0xffffffff
jne 0x4139b0
xor eax, eax
lea ecx, [ebp - 0x134]
inc eax
push eax
mov eax, dword [ebp - 0x150]
push 0x6c1fb8
add eax, 2
push eax
call fcn.00405a15
cmp dword [ebp - 0x120], 0x10
lea eax, [ebp - 0x134]
cmovae eax, dword [ebp - 0x134]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea ecx, [ebp - 0x134]
call fcn.004060fd
push esi
call edi
xor ecx, ecx
inc ecx
or eax, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, ebx
call fcn.004e5a3a
ret