Function at 0x429dc0
Capabilities:
Check if file exists
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x870
mov eax, dword [0x442f9c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, 1
push 0x438c70
push 0x104
push ebx
mov dword [ebp - 0x870], edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
push 0x438c70
push 0x104
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
push ebx
lea eax, [ebp - 0x61c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
push 0x4399bc
lea eax, [ebp - 0x61c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0x30
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x429e64
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434750
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x42a003
nop dword [eax]
lea eax, [ebp - 0x86c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x42a003
push ebx
lea eax, [ebp - 0x414]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
push dword [ebp - 0x870]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0x30
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x429f09
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [ebp - 0x86c], 0x10
jne 0x429f37
push 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x429e70
xor esi, esi
jmp 0x429e70
mov ecx, 0x4399c4
lea eax, [ebp - 0x840]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x429f68
test dx, dx
je 0x429f64
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x429f68
add eax, 4
add ecx, 4
test dx, dx
jne 0x429f42
xor eax, eax
jmp 0x429f6d
sbb eax, eax
or eax, 1
test eax, eax
je 0x429e70
mov eax, 0x4399c8
lea ecx, [ebp - 0x840]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x429fa6
test dx, dx
je 0x429fa2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x429fa6
add ecx, 4
add eax, 4
test dx, dx
jne 0x429f80
xor eax, eax
jmp 0x429fab
sbb eax, eax
or eax, 1
test eax, eax
je 0x429e70
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
test esi, esi
jne 0x429fde
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x429e70
mov esi, 1
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00429dc0
add esp, 8
test eax, eax
jne 0x429e70
xor esi, esi
jmp 0x429e70
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00434750
mov esp, ebp
pop ebp
ret