Function at 0x408324
Capabilities:
Copy file
Delete file
Get session user name
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c8
push ebx
push esi
push edi
xor eax, eax
push 0x1f
xor ebx, ebx
pop ecx
mov byte [ebp - 0x2c8], bl
lea edi, [ebp - 0x2c7]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x7f
pop edx
xor eax, eax
mov byte [ebp - 0x248], bl
mov ecx, edx
lea edi, [ebp - 0x247]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0xf
xor eax, eax
cmp dword [0x459428], 0x3c
mov byte [ebp - 0x48], bl
pop ecx
lea edi, [ebp - 0x47]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 1], bl
mov dword [ebp - 8], edx
jb 0x40841a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x2c8]
push eax
call dword [0x42a008]
test eax, eax
je 0x4085c3
mov esi, dword [ebp + 8]
push esi
call fcn.00414510
mov edi, dword [0x42a260]
push esi
lea eax, [ebp - 0x248]
push 0x42a61c
push eax
call edi
add esp, 0x10
push ebx
push ebx
lea eax, [ebp - 0x248]
push eax
push 0x42a614
push ebx
push ebx
call dword [0x458c8c]
push 0x7d0
call dword [0x42a1e4]
lea eax, [ebp - 0x2c8]
push eax
push esi
lea eax, [ebp - 0x248]
push 0x42a604
push eax
call edi
add esp, 0x10
push ebx
push ebx
lea eax, [ebp - 0x248]
push eax
push 0x42a5fc
push ebx
push ebx
call dword [0x458c8c]
push 0xbb8
call dword [0x42a1e4]
jmp 0x40841d
mov esi, dword [ebp + 8]
push esi
call fcn.00413f8e
pop ecx
push esi
call dword [0x42a214]
add eax, esi
mov ecx, eax
sub ecx, esi
jmp 0x40843a
cmp byte [eax], 0x5c
je 0x408448
dec eax
dec ecx
cmp ecx, 1
jg 0x408433
cmp byte [eax], 0x5c
jne 0x4085c3
lea edi, [eax + 1]
cmp byte [edi], bl
je 0x4085c3
push edi
call fcn.00414787
push edi
call fcn.00414787
push edi
call fcn.00414787
push 0x200
lea eax, [ebp - 0x248]
push ebx
push eax
call fcn.00421c60
add esp, 0x18
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x248]
push eax
mov dword [ebp - 8], 0x7f
mov byte [ebp - 0x248], bl
call dword [0x458bd0]
mov esi, dword [0x42a1f0]
push edi
lea eax, [ebp - 0x248]
push eax
call esi
lea eax, [ebp - 0x248]
push eax
movzx eax, byte [ebp - 0x248]
push 5
cdq
pop ecx
idiv ecx
lea eax, [ebp - 0x48]
add edx, 6
push edx
push eax
call fcn.004135c8
push 0x200
lea eax, [ebp - 0x248]
push ebx
push eax
call fcn.00421c60
mov eax, edi
sub eax, dword [ebp + 8]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x248]
push eax
call fcn.00421e30
add esp, 0x24
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x248]
push eax
call esi
lea eax, [ebp - 0x248]
push eax
call fcn.00413a97
test eax, eax
pop ecx
je 0x408517
mov byte [ebp - 1], 1
jmp 0x408524
lea eax, [ebp - 0x248]
push eax
call fcn.00413e36
pop ecx
push 0x42a3b0
lea eax, [ebp - 0x248]
push eax
call esi
push edi
lea eax, [ebp - 0x248]
push eax
call esi
cmp byte [ebp - 1], bl
mov esi, dword [0x42a10c]
jne 0x408569
push 1
lea eax, [ebp - 0x248]
push eax
push dword [ebp + 8]
call dword [0x42a218]
push 0x80
lea eax, [ebp - 0x248]
push eax
call esi
jmp 0x408576
push dword [ebp + 8]
call fcn.00401e2a
test al, al
pop ecx
jne 0x4085bf
push edi
call fcn.00414787
mov dword [esp], 0xbb8
call dword [0x42a1e4]
mov edi, dword [ebp + 8]
push 0x80
push edi
call esi
push edi
call dword [0x42a204]
test eax, eax
je 0x4085bf
push ebx
push edi
push 0x459310
call dword [0x42a218]
test eax, eax
je 0x4085bf
lea eax, [ebp - 0x248]
push edi
push eax
call fcn.00409201
pop ecx
pop ecx
mov al, 1
jmp 0x4085c5
xor al, al
pop edi
pop esi
pop ebx
leave
ret