Function at 0x416350
Capabilities:
Delete file
Get common file path
Get file attributes
Move file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x485b74
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x4a4720]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a4720]
xor eax, esp
push eax
lea eax, [esp + 0x284]
mov dword fs:[0], eax
mov esi, dword [esp + 0x294]
mov eax, dword [esp + 0x298]
mov edi, dword [esp + 0x29c]
push str.Wow64DisableWow64FsRedirection
xor ebp, ebp
push str.kernel32
mov ebx, edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x3c], eax
cmp eax, ebp
je 0x4163de
lea edx, [esp + 0x40]
push edx
call eax
mov dword [esp + 0x28c], ebp
call fcn.004440b8
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x4163ff
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x28c], 1
call fcn.004440b8
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x416431
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x28c], 2
call fcn.004440b8
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x416463
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x28c], 3
call fcn.004440b8
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x416495
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x30], ebp
push 1
lea ecx, [esp + 0x18]
push ecx
push ecx
mov byte [esp + 0x298], 4
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x491520
call fcn.00401ed0
push esi
call fcn.0042e350
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4165ce
mov edi, 0xa0000001
lea esi, [esp + 0x2c]
call fcn.00414000
mov ecx, dword [esp + 0x34]
push eax
mov byte [esp + 0x290], 5
call fcn.00407570
mov byte [esp + 0x28c], 4
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41651f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x28c], 3
lea eax, [ebp - 0x10]
mov dword [ecx], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41654d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28c], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416575
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28c], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41659d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28c], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416c67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x416c67
push 1
lea ecx, [esp + 0x34]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.iSystemBits
call fcn.00401ed0
push esi
call fcn.0042e350
mov dword [esp + 0x20], eax
test eax, eax
jne 0x416654
mov edi, 0xa0000001
lea esi, [esp + 0x2c]
call fcn.00414000
mov ecx, dword [esp + 0x34]
push eax
mov byte [esp + 0x290], 6
call fcn.00407570
mov byte [esp + 0x28c], 4
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41663c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x28c], 3
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
jmp 0x41652e
mov esi, dword [esp + 0x30]
push esi
call fcn.00461856
add esp, 4
cmp dword [0x4a657c], 0
mov edi, eax
je 0x4166b3
push str.GetNativeSystemInfo
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4166a9
lea ecx, [esp + 0x50]
push ecx
call eax
mov ax, word [esp + 0x50]
cmp ax, 9
je 0x41669f
cmp ax, 6
jne 0x4166a9
mov dword [0x4a99d4], 1
mov dword [0x4a657c], 0
test edi, edi
je 0x4166c5
cmp edi, 1
jne 0x4166f7
cmp dword [0x4a99d4], 0
jne 0x416705
mov ebx, dword [esp + 0x14]
push ecx
mov dword [esp + 0x2c], esp
mov ecx, dword [ebx - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add ebx, 0xfffffff0
mov edi, esp
call eax
cmp dword [ebx + 0xc], 0
lea ecx, [ebx + 0xc]
jl 0x41671d
cmp eax, dword [ebx]
jne 0x41671d
mov esi, ebx
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x416759
cmp edi, 2
jne 0x416705
cmp dword [0x4a99d4], 0
jne 0x4166c5
mov dword [esp + 0x20], 1
mov byte [esp + 0x28c], 3
lea eax, [esi - 0x10]
jmp 0x416534
mov ecx, dword [ebx + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
jne 0x416736
call fcn.004303e0
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov eax, dword [ebx + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebx + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [esi + 0x10]
push ecx
call fcn.00461715
add esp, 0x10
add esi, 0x10
mov dword [edi], esi
lea esi, [esp + 0x2c]
call fcn.0043d140
add esp, 4
push eax
mov byte [esp + 0x290], 7
push ecx
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x40], esp
mov edi, esp
call eax
cmp dword [ebx + 0xc], 0
lea edx, [ebx + 0xc]
jl 0x41679d
cmp eax, dword [ebx]
jne 0x41679d
mov esi, ebx
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x4167d9
mov ecx, dword [ebx + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
jne 0x4167b6
call fcn.004303e0
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov eax, dword [ebx + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebx + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [esi + 0x10]
push ecx
call fcn.00461715
add esp, 0x10
add esi, 0x10
mov dword [edi], esi
lea esi, [esp + 0x50]
call fcn.0043d220
add esp, 4
push eax
lea edx, [esp + 0x34]
push edx
mov byte [esp + 0x298], 8
call fcn.0040d8d0
add esp, 0xc
mov byte [esp + 0x28c], 9
mov ecx, dword [eax]
mov esi, dword [esp + 0x18]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x41685f
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x416851
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x416851
push eax
call fcn.00401fe0
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x416848
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x18], ebp
jmp 0x41685f
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00401da0
mov byte [esp + 0x28c], 8
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416887
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28c], 7
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4168af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28c], 4
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4168d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x3c], esp
mov edi, esp
call eax
cmp dword [ebx + 0xc], 0
lea ecx, [ebx + 0xc]
jl 0x416901
cmp eax, dword [ebx]
jne 0x416901
mov esi, ebx
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x41693d
mov ecx, dword [ebx + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
jne 0x41691a
call fcn.004303e0
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov eax, dword [ebx + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebx + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [esi + 0x10]
push ecx
call fcn.00461715
add esp, 0x10
add esi, 0x10
mov dword [edi], esi
lea esi, [esp + 0x2c]
call fcn.0043d450
add esp, 4
mov byte [esp + 0x28c], 0xa
mov ecx, dword [eax]
mov esi, dword [esp + 0x1c]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x4169ad
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x41699f
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x41699f
push eax
call fcn.00401fe0
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x416996
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x1c], ebp
jmp 0x4169ad
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.00401da0
mov byte [esp + 0x28c], 4
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4169d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x3c], esp
mov edi, esp
call eax
cmp dword [ebx + 0xc], 0
lea ecx, [ebx + 0xc]
jl 0x4169ff
cmp eax, dword [ebx]
jne 0x4169ff
mov esi, ebx
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x416a3b
mov ecx, dword [ebx + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
jne 0x416a18
call fcn.004303e0
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov eax, dword [ebx + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebx + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [esi + 0x10]
push ecx
call fcn.00461715
add esp, 0x10
add esi, 0x10
mov dword [edi], esi
call fcn.0043d580
add esp, 4
test eax, eax
je 0x416b33
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x416a71
and eax, 0xfffffffe
jne 0x416a69
mov eax, 0x80
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edx
call edi
mov ebp, eax
mov dword [esp + 0x20], ebp
test ebp, ebp
jne 0x416b2b
push 0x206
push eax
lea ecx, [esp + 0x7e]
push ecx
mov word [esp + 0x80], ax
call fcn.00464a00
mov eax, dword [esp + 0x28]
add esp, 0xc
lea edx, [esp + 0x74]
push edx
push ebp
push 0x4914c8
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x416b2b
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 1
lea ecx, [esp + 0x78]
push ecx
push edx
call esi
test eax, eax
lea eax, [esp + 0x74]
push eax
jne 0x416b02
call edi
mov ecx, dword [esp + 0x14]
push 4
push ebp
push ecx
call esi
mov edx, dword [esp + 0x4c]
mov ebp, eax
mov dword [esp + 0x20], ebp
mov dword [edx], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x416b3b
call edi
mov ebp, eax
mov dword [esp + 0x20], ebp
test ebp, ebp
jne 0x416b2b
push 2
lea ecx, [esp + 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 4
push ebp
lea edx, [esp + 0x7c]
push edx
call esi
mov ebp, eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x416b3b
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x44]
test ebp, ebp
jne 0x416ba7
mov ebp, dword [esp + 0x294]
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x24]
mov edi, eax
lea esi, [esp + 0x24]
mov dword [edx], ecx
call fcn.00414000
mov byte [esp + 0x28c], 0xb
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov eax, dword [ebp + 0x2c]
push ecx
push edx
push eax
mov eax, dword [esp + 0x40]
push eax
call fcn.00403800
mov byte [esp + 0x29c], 4
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416bce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x416bce
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x294]
mov dword [ecx], 2
mov ecx, dword [esp + 0x18]
mov eax, dword [edx + 0x30]
mov edx, dword [esp + 0x34]
push ecx
push eax
push edx
call fcn.00403800
add esp, 0xc
mov byte [esp + 0x28c], 3
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416bf6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28c], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416c1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28c], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416c46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28c], 0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416c67
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov dword [esp + 0x28c], 0xffffffff
cmp dword [esp + 0x3c], 0
je 0x416c9b
push str.Wow64RevertWow64FsRedirection
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x416c9b
mov ecx, dword [esp + 0x40]
push ecx
call eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x284]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.00461706
add esp, 0x27c
ret