Function at 0x405b90
Capabilities:
Check if file exists
Copy file
Get common file path
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x41facd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x324
mov eax, dword [0x428654]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x33c], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
push 0x42c988
lea ecx, [esp + 0x20]
mov byte [esp + 0x340], 2
call fcn.0041b6f9
lea eax, [esp + 0x28]
push 0x104
push eax
mov byte [esp + 0x344], 3
call fcn.00406d20
add esp, 8
lea ecx, [esp + 0x28]
push str.DNTUS26.EXE
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [esi + 0x160]
lea edx, [esp + 0x28]
push edx
add ecx, 0x4c
call fcn.0041b7c8
mov eax, dword [esi + 0x160]
mov ecx, dword [eax + 0x50]
test ecx, ecx
je 0x405f8d
mov eax, dword [eax + 0x20]
mov al, byte [eax]
cmp al, 0x5c
je 0x405c41
push 0x42842c
jmp 0x405c46
push 0x42c988
lea ecx, [esp + 0x14]
call fcn.0041b7c8
mov ecx, dword [esi + 0x160]
lea edx, [esp + 0x230]
mov eax, dword [ecx + 0x20]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x230]
push eax
call fcn.00406d90
add esp, 4
test eax, eax
je 0x405ca6
lea ecx, [esp + 0x12c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x12c]
lea ecx, [esp + 0x10]
push edx
call fcn.0041b7c8
push 0x4282bc
jmp 0x405cbe
mov eax, dword [esi + 0x160]
lea ecx, [esp + 0x10]
add eax, 0x20
push eax
call fcn.0041b8f4
push str.Admin_SYSTEM32_
lea ecx, [esp + 0x14]
call fcn.0041b8cd
mov ecx, dword [esi + 0x160]
add ecx, 0x4c
push ecx
lea ecx, [esp + 0x18]
call fcn.0041b778
mov edx, dword [esi + 0x160]
lea ecx, [esp + 0x1c]
add edx, 0x4c
push edx
call fcn.0041b778
push 0x5c
lea ecx, [esp + 0x20]
call fcn.004170c3
cmp eax, 0xffffffff
je 0x405d30
inc eax
lea ecx, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0041700a
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x340], 4
call fcn.0041b778
lea ecx, [esp + 0x20]
mov byte [esp + 0x33c], 3
call fcn.0041b68b
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0041b778
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x18]
push edx
call fcn.0041b8f4
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp eax, 0xffffffff
je 0x405d6e
mov ecx, dword [esp + 0x14]
and al, 0xfe
push eax
push ecx
call ebp
mov edx, dword [esp + 0x18]
push edx
call edi
cmp eax, 0xffffffff
je 0x405d84
and al, 0xfe
push eax
mov eax, dword [esp + 0x1c]
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push ecx
push edx
call ebx
test eax, eax
jne 0x405dea
mov eax, dword [0x428654]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
lea eax, [esp + 0x2c]
push 0x26
push eax
mov byte [esp + 0x34c], 5
call fcn.00417445
add esp, 0x10
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00406000
mov byte [esp + 0x33c], 3
lea ecx, [esp + 0x24]
jmp 0x405f3d
lea edx, [esp + 0x28]
push 0x104
push edx
call fcn.00406d20
mov eax, dword [esi + 0x160]
add esp, 8
mov ecx, dword [eax + 0x20]
cmp byte [ecx], 0x5c
je 0x405e11
push 0x42842c
jmp 0x405e16
push 0x42c988
lea ecx, [esp + 0x14]
call fcn.0041b7c8
lea edx, [esp + 0x230]
push edx
call fcn.00406d90
add esp, 4
test eax, eax
je 0x405e5e
lea eax, [esp + 0x12c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x12c]
push ecx
lea ecx, [esp + 0x14]
call fcn.0041b7c8
push 0x4282bc
jmp 0x405e76
mov edx, dword [esi + 0x160]
lea ecx, [esp + 0x10]
add edx, 0x20
push edx
call fcn.0041b8f4
push str.Admin_SYSTEM32_
lea ecx, [esp + 0x14]
call fcn.0041b8cd
lea eax, [esp + 0x28]
lea ecx, [esp + 0x14]
push eax
call fcn.0041b7c8
push str.psapi.dll
lea ecx, [esp + 0x18]
call fcn.0041b8cd
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0041b778
push str.psapi.dll
lea ecx, [esp + 0x1c]
call fcn.0041b8cd
mov edx, dword [esp + 0x14]
push edx
call edi
cmp eax, 0xffffffff
je 0x405ecd
and al, 0xfe
push eax
mov eax, dword [esp + 0x18]
push eax
call ebp
mov ecx, dword [esp + 0x18]
push ecx
call edi
cmp eax, 0xffffffff
jne 0x405f8d
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push 0
push edx
push eax
call ebx
test eax, eax
jne 0x405f8d
mov ecx, dword [0x428654]
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x28]
push 0x26
push ecx
mov byte [esp + 0x34c], 6
call fcn.00417445
add esp, 0x10
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00406000
mov byte [esp + 0x33c], 3
lea ecx, [esp + 0x20]
call fcn.0041b68b
lea ecx, [esp + 0x1c]
mov byte [esp + 0x33c], 2
call fcn.0041b68b
lea ecx, [esp + 0x18]
mov byte [esp + 0x33c], 1
call fcn.0041b68b
lea ecx, [esp + 0x14]
mov byte [esp + 0x33c], 0
call fcn.0041b68b
lea ecx, [esp + 0x10]
mov dword [esp + 0x33c], 0xffffffff
call fcn.0041b68b
xor eax, eax
jmp 0x405fd9
lea ecx, [esp + 0x1c]
mov byte [esp + 0x33c], 2
call fcn.0041b68b
lea ecx, [esp + 0x18]
mov byte [esp + 0x33c], 1
call fcn.0041b68b
lea ecx, [esp + 0x14]
mov byte [esp + 0x33c], 0
call fcn.0041b68b
lea ecx, [esp + 0x10]
mov dword [esp + 0x33c], 0xffffffff
call fcn.0041b68b
mov eax, 1
mov ecx, dword [esp + 0x334]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x330
ret