Function at 0x465910
Capabilities:
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46f17b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x700
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
je 0x465bfa
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x465bfa
xor eax, eax
mov byte [esp + 0x118], 0
mov ecx, 0x40
lea edi, [esp + 0x119]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x328], 0
mov ecx, 0x40
lea edi, [esp + 0x329]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x118]
stosb byte es:[edi], al
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4659a4
lea edi, [esp + 0x118]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4659b6
mov eax, dword [str..rstmp]
mov cx, word [0x477dc0]
mov dl, byte [0x477dc2]
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
test eax, eax
mov word [edi + 4], cx
mov byte [edi + 6], dl
lea edx, [esp + 0x10]
je 0x4659f2
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4659e6
jmp 0x465a16
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4659f6
lea eax, [esp + 0x10]
push 0x5c
push eax
call fcn.00457e22
add esp, 8
test eax, eax
je 0x465a16
mov byte [eax], 0
lea ecx, [esp + 0x430]
call fcn.00465c40
push 0
lea ecx, [esp + 0x32c]
push ecx
lea edx, [esp + 0x120]
push edx
push esi
lea ecx, [esp + 0x440]
mov dword [esp + 0x724], 0
call fcn.004665c0
test eax, eax
jne 0x465a60
mov dword [esp + 0x714], 0xffffffff
jmp 0x465bee
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x465a67
sub eax, edx
cmp eax, 3
jbe 0x465a91
lea edi, [esp + 0x10]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x465a80
mov ax, word [0x4708a4]
mov word [edi], ax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x465aba
mov edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x465aa0
lea edi, [esp + 0x10]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x465ab0
jmp 0x465ad9
lea eax, [esp + 0x328]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x465ac3
lea edi, [esp + 0x10]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x465ad1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
mov byte [esp + 0x220], 0
mov ecx, 0x40
lea edi, [esp + 0x221]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
jmp 0x465b10
mov cl, byte [esp + eax + 0x10]
mov byte [esp + eax + 0x220], cl
inc eax
test cl, cl
jne 0x465b10
lea ecx, [esp + 0x220]
push 0x5c
push ecx
call fcn.00457e22
add esp, 8
test eax, eax
je 0x465b39
mov byte [eax], 0
mov al, byte [esp + 0x220]
or ebx, 0xffffffff
cmp al, 0x5c
je 0x465b5d
lea edx, [esp + 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, ebx
je 0x465b5d
test al, 0x10
jne 0x465b73
lea eax, [esp + 0x220]
push 0
push eax
call fcn.00465460
add esp, 8
test eax, eax
je 0x465be7
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
push esi
call fcn.004586bb
add esp, 8
test eax, eax
push 0x80
jne 0x465b9e
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
jmp 0x465bd5
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x14]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x10]
push ecx
call edi
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x465bd0
mov edx, dword [ebp + 8]
push 0x80
push edx
call esi
mov eax, dword [ebp + 8]
push eax
call edi
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x465c11
mov dword [esp + 0x714], ebx
lea ecx, [esp + 0x430]
call fcn.00465cb0
xor eax, eax
mov ecx, dword [esp + 0x70c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x430]
mov dword [esp + 0x714], ebx
call fcn.00465cb0
mov ecx, dword [esp + 0x70c]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret