Function at 0x4726e0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca175
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
mov eax, dword [0x4ff080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x18], ebx
push str.Wow64DisableWow64FsRedirection
push str.kernel32.dll
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x472740
lea ecx, [ebp - 0x24]
push ecx
call eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
test ebx, ebx
je 0x472894
mov edx, esi
lea ecx, [ebp - 0x14]
call fcn.00472050
mov byte [ebp - 4], 1
xor bl, bl
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 1
jl 0x4728d6
cmp word [eax + 2], 0x3a
jne 0x47278a
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
movzx ebx, bl
mov eax, dword [ebp - 0x14]
mov ecx, 1
cmovne ebx, ecx
push eax
mov byte [ebp - 0xd], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47279e
test al, 0x10
jne 0x4727d3
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
jl 0x4727c4
push str.hkey_
push eax
call fcn.004ab6e8
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x14]
test ecx, ecx
je 0x4727c4
sub ecx, eax
sar ecx, 1
je 0x4727d6
mov ecx, eax
call fcn.00472200
test al, al
je 0x4727d3
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 0x14]
cmp byte [ebp + 8], 0
mov esi, dword [ebp + 0x10]
je 0x4727ea
push dword [esi]
push eax
call fcn.00467f40
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x472815
test al, 0x10
je 0x472815
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 0xd]
push dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
push dword [ebp + 8]
push eax
call fcn.004728f0
add esp, 0x14
jmp 0x47282c
push 0x80
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test bl, bl
je 0x47284c
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47284c
push 4
push 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x472852
cmp byte [ebp - 0xd], 0
je 0x472875
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x472871
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor bl, bl
jmp 0x472896
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x472894
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov bl, 1
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], 0
je 0x4728c3
push str.Wow64RevertWow64FsRedirection
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4728c3
push dword [ebp - 0x24]
call eax
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00456c80
int3