Function at 0x4058d0
Capabilities:
Copy file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x684
mov eax, dword [0x446044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push ebx
mov dword [ebp - 0x674], edi
mov dword [ebp - 0x670], ebx
mov dword [ebp - 0x66c], eax
mov dword [ebp - 0x680], ecx
call fcn.00420106
add esp, 4
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x416]
push eax
mov word [ebp - 0x418], dx
call fcn.00426670
add esp, 0xc
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20e]
push edx
mov word [ebp - 0x210], cx
call fcn.00426670
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push edi
lea eax, [ebp - 0x418]
push str._s.
push eax
call esi
add esp, 0xc
lea ecx, [ebp - 0x668]
push ecx
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x67c], eax
cmp eax, 0xffffffff
je 0x405cd1
jmp 0x4059a2
mov edi, dword [ebp - 0x674]
mov ebx, dword [ebp - 0x670]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x63c]
push eax
push edi
lea ecx, [ebp - 0x418]
push 0x439098
push ecx
call esi
lea edx, [ebp - 0x63c]
push edx
push ebx
lea eax, [ebp - 0x210]
push 0x439098
push eax
call esi
add esp, 0x20
mov ecx, 0x434934
lea eax, [ebp - 0x63c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405a06
test dx, dx
je 0x405a02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405a06
add eax, 4
add ecx, 4
test dx, dx
jne 0x4059e0
xor esi, esi
jmp 0x405a0b
sbb esi, esi
sbb esi, 0xffffffff
test esi, esi
je 0x405cad
mov ecx, 0x439090
lea eax, [ebp - 0x63c]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405a46
test dx, dx
je 0x405a42
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405a46
add eax, 4
add ecx, 4
test dx, dx
jne 0x405a20
xor eax, eax
jmp 0x405a4b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x405c27
test byte [ebp - 0x668], 0x10
jne 0x405c27
mov esi, 1
xor edi, edi
cmp dword [0xc9a804], esi
jne 0x405a89
lea ecx, [ebp - 0x63c]
push 0x43543c
push ecx
call fcn.0041e957
add esp, 8
test eax, eax
jne 0x405a89
mov edi, esi
cmp dword [0xc9a808], esi
jne 0x405aab
lea edx, [ebp - 0x63c]
push 0x435418
push edx
call fcn.0041e957
add esp, 8
test eax, eax
jne 0x405aab
mov edi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
lea eax, [ebp - 0x210]
push eax
call ebx
push edi
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x678], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 0x80
lea eax, [ebp - 0x210]
push eax
call ebx
cmp edi, 1
jne 0x405afe
cmp esi, 0x50
je 0x405bc6
cmp dword [ebp - 0x678], 0
jne 0x405bbd
push esi
lea ecx, [ebp - 0x63c]
push ecx
push 0x4390a8
push 0xc97518
call dword [sym.imp.USER32.dll_wsprintfW]
push 0xc97518
call fcn.00403960
lea edx, [ebp - 0x63c]
add esp, 0x14
push edx
call fcn.00417430
add esp, 4
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x80
lea edx, [ebp - 0x210]
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp edi, 1
jne 0x405b85
cmp esi, 0x50
je 0x405bc6
test ebx, ebx
jne 0x405bbd
mov eax, dword [0xc97d18]
inc eax
push eax
mov dword [0xc97d18], eax
push esi
lea eax, [ebp - 0x63c]
push eax
push 0x4390f8
push 0xc97518
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0xc97518
call fcn.00403960
add esp, 4
cmp edi, 1
jne 0x405cad
lea ecx, [ebp - 0x63c]
push 0x43543c
push ecx
call fcn.0041e957
add esp, 8
test eax, eax
jne 0x405bf0
cmp esi, 0x50
jne 0x405bf0
push 0x439150
call fcn.00403960
add esp, 4
lea edx, [ebp - 0x63c]
push 0x435418
push edx
call fcn.0041e957
add esp, 8
test eax, eax
jne 0x405cad
cmp esi, 0x50
jne 0x405cad
push 0x4391a0
call fcn.00403960
add esp, 4
jmp 0x405cad
test esi, esi
je 0x405cad
mov ecx, 0x439090
lea eax, [ebp - 0x63c]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405c66
test dx, dx
je 0x405c62
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405c66
add eax, 4
add ecx, 4
test dx, dx
jne 0x405c40
xor eax, eax
jmp 0x405c6b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x405cad
push 0x80
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x680]
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp - 0x66c]
push edx
push eax
push ecx
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x418]
push eax
call fcn.004058d0
add esp, 0x18
mov esi, dword [ebp - 0x67c]
lea ecx, [ebp - 0x668]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x405990
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, dword [0xc97d18]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e7be
mov esp, ebp
pop ebp
ret