Function at 0x46dce0
Capabilities:
Copy file
Delete file
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5016b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xeec
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [0x5748d0]
xor eax, eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], eax
call fcn.0040b720
mov edx, dword [eax + 0x20]
mov ecx, esi
push edx
call fcn.004701d0
mov eax, dword [esi + 0x128]
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0xef8]
mov dword [ebp - 0x3c], eax
lea edx, [ebp - 0xcf0]
push ecx
lea eax, [ebp - 0x8dc]
push edx
lea ecx, [ebp - 0x2bc]
push eax
push ecx
push edi
mov dword [ebp - 0x1c], 1
mov byte [ebp - 4], 1
call fcn.004bf9cf
lea edx, [ebp - 0x2bc]
lea eax, [ebp - 0x6d4]
push edx
push eax
call fcn.004bf69f
lea ecx, [ebp - 0x8dc]
lea edx, [ebp - 0x6d4]
push ecx
push edx
call fcn.004bf675
lea eax, [ebp - 0xae8]
push edi
push eax
call fcn.004bf69f
lea ecx, [ebp - 0xae8]
push str..bak
push ecx
call fcn.004bf675
lea edx, [ebp - 0x2bc]
push 0x53e854
push edx
call fcn.004bf675
add esp, 0x3c
lea eax, [ebp - 0x2bc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
lea ecx, [ebp - 0x2bc]
mov ebx, eax
push ecx
call fcn.004bf79a
add esp, 4
cmp eax, 2
jb 0x46dde3
cmp ebx, 3
je 0x46ddea
mov dword [ebp - 0x1c], 0
mov edx, dword [esi + 0x28]
lea ecx, [ebp - 0xb4]
push edx
call fcn.00493590
mov eax, dword [esi + 0x12c]
mov byte [ebp - 4], 2
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x46de3c
lea eax, [ebp - 0x4c8]
lea ecx, [ebp - 0x6d4]
push eax
push 0
push 0x53f358
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x46de53
push 0
lea edx, [ebp - 0x4c8]
push 0x1001
push edx
jmp 0x46de44
push 0
push 0x1001
push edi
lea ecx, [ebp - 0xb4]
call fcn.004dc696
test eax, eax
jne 0x46de86
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 1
call fcn.00493610
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.004dbbcb
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi + 0x128]
mov ebx, 1
cmp eax, 2
jne 0x46de9c
mov dword [esi + 0x128], ebx
mov eax, dword [esi + 0x40]
test eax, eax
jl 0x46dea8
cmp eax, 3
jle 0x46deaa
xor eax, eax
mov eax, dword [eax*4 + 0x53f2fc]
push eax
mov dword [ebp - 0x34], eax
call fcn.004bf79a
add esp, 4
mov ecx, esi
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x20], 4
mov dword [ebp - 0x2c], ebx
call fcn.0046e0e0
mov dword [ebp - 0x24], ebx
xor ebx, ebx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x28], ebx
cmp ebx, dword [ebp - 0x40]
jge 0x46dfd5
push ebx
mov ecx, esi
call fcn.0046e240
mov edi, eax
test edi, edi
je 0x46dfc9
test dword [edi + 0xc], 0x1000000
jne 0x46dfc9
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x46df41
mov ebx, dword [ebp - 0x20]
cmp ebx, 4
jl 0x46df1d
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x34]
push eax
push ecx
jmp 0x46df36
mov edx, dword [ebx*4 + 0x53f2fc]
push edx
call fcn.004bf79a
add esp, 4
push eax
mov eax, dword [ebx*4 + 0x53f2fc]
push eax
lea ecx, [ebp - 0xb4]
call fcn.004936d0
mov edx, dword [edi + 4]
mov eax, dword [esi]
xor ecx, ecx
mov dword [ebp - 0x2c], 0
mov cl, byte [edi + 0x14]
mov dword [ebp - 0x18], edx
mov edx, dword [edi]
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x18]
push ecx
push edx
mov ecx, esi
call dword [eax + 0x68]
mov ebx, eax
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x46df99
mov eax, dword [ebp - 0x18]
test eax, eax
jle 0x46df99
mov ecx, esi
call fcn.0046ff70
mov ecx, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push ecx
push 0
push ebx
call fcn.004701e0
mov eax, dword [ebp - 0x14]
add esp, 0x14
mov ecx, dword [eax - 8]
push ecx
push eax
jmp 0x46df9e
mov edx, dword [ebp - 0x18]
push edx
push ebx
lea ecx, [ebp - 0xb4]
call fcn.004936d0
mov ebx, dword [ebp - 0x24]
mov eax, dword [edi + 0x10]
cmp eax, ebx
je 0x46dfbf
mov eax, dword [esi]
push ebx
push edi
mov ecx, esi
call dword [eax + 0x84]
mov dword [edi + 0x10], ebx
inc ebx
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp + 8]
inc ebx
mov dword [ebp - 0x28], ebx
jmp 0x46dedc
lea ecx, [ebp - 0xb4]
call fcn.00493ea0
lea ecx, [ebp - 0xb4]
call fcn.00493ed0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x46e006
push 0
lea ecx, [ebp - 0x4c8]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x46e023
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x46e01c
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx + 0x6c]
mov eax, dword [esi + 0x48]
mov dword [esi + 0x4c], eax
mov dword [ebp - 0x30], 1
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 1
call fcn.00493610
jmp 0x46e04b
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x3c]
test eax, eax
mov dword [esi + 0x128], ecx
je 0x46e068
lea edx, [ebp - 0x4c8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.004dbbcb
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x30]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc