Function at 0x41f390
Capabilities:
Check if file exists
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0xffffffffffffffff
push 0x448c0b
mov eax, dword fs:[0]
push eax
sub esp, 0x690
mov eax, dword [0x465d44]
xor eax, esp
mov dword [esp + 0x68c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x465d44]
xor eax, esp
push eax
lea eax, [esp + 0x6a4]
mov dword fs:[0], eax
mov esi, dword [esp + 0x6b8]
mov edi, dword [esp + 0x6b4]
mov ebx, dword [esp + 0x6bc]
push esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41f3fe
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x41f409
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
xor esi, esi
xor eax, eax
mov word [esp + 0x28], ax
mov eax, edi
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x41f423
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0x2c]
call fcn.0040376d
mov eax, dword [esp + 0x38]
mov dword [esp + 0x6ac], esi
lea esi, [eax - 1]
cmp esi, eax
jbe 0x41f454
call fcn.0043143f
mov eax, dword [esp + 0x28]
mov ebp, 8
cmp dword [esp + 0x3c], ebp
jae 0x41f467
lea eax, [esp + 0x28]
cmp word [eax + esi*2], 0x5c
je 0x41f47e
push 1
push 0x458b48
lea ecx, [esp + 0x2c]
call fcn.004030e2
push 1
push 0x4555a0
lea ecx, [esp + 0x2c]
call fcn.004030e2
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x3c], ebp
jae 0x41f49c
lea eax, [esp + 0x28]
lea ecx, [esp + 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
mov dword [esp + 0x14], ebp
cmp ebp, 0xffffffff
jne 0x41f4d1
cmp dword [esp + 0x3c], 8
jb 0x41f4c7
mov edx, dword [esp + 0x28]
push edx
call fcn.00430dfa
add esp, 4
mov eax, 1
jmp 0x41f6f5
push 0x208
lea eax, [esp + 0x294]
push 0
push eax
call fcn.004310d0
push 0x208
lea ecx, [esp + 0x4a8]
push 0
push ecx
call fcn.004310d0
add esp, 0x18
lea esp, [esp]
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpW]
push 0x45559c
lea edx, [esp + 0x70]
push edx
call esi
test eax, eax
je 0x41f6c4
push 0x44fad8
lea eax, [esp + 0x70]
push eax
call esi
test eax, eax
je 0x41f6c4
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 0x6c]
push ecx
push edi
lea edx, [esp + 0x298]
push edx
call esi
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x6c]
push eax
push ecx
lea edx, [esp + 0x4a0]
push edx
call esi
test byte [esp + 0x40], 0x10
je 0x41f57f
push 1
push ebx
lea eax, [esp + 0x4a0]
push eax
lea ecx, [esp + 0x29c]
push ecx
call fcn.0041f390
add esp, 0x10
jmp 0x41f6c4
mov esi, dword [esp + 0x6c0]
test esi, esi
jne 0x41f5b2
lea edx, [esp + 0x290]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41f5b2
lea eax, [esp + 0x290]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x41f6c4
test ebx, ebx
je 0x41f69c
mov ecx, dword [ebx + 0x10]
sub ecx, dword [ebx + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
je 0x41f69c
lea edx, [esp + 0x290]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edi, dword [ebx + 0xc]
mov dword [esp + 0x1c], eax
cmp edi, dword [ebx + 0x10]
jbe 0x41f5f8
call fcn.0043143f
mov esi, dword [ebx]
lea ebx, [ebx]
mov ebp, dword [ebx + 0x10]
cmp dword [ebx + 0xc], ebp
jbe 0x41f60d
call fcn.0043143f
mov eax, dword [ebx]
test esi, esi
je 0x41f617
cmp esi, eax
je 0x41f61c
call fcn.0043143f
cmp edi, ebp
je 0x41f6bc
test esi, esi
jne 0x41f694
call fcn.0043143f
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x41f639
call fcn.0043143f
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
jb 0x41f644
mov eax, dword [eax]
mov ecx, dword [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x41f6bc
xor edx, edx
cmp dword [esp + 0x6c0], edx
lea eax, [esp + 0x498]
sete dl
lea ecx, [esp + 0x290]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test esi, esi
jne 0x41f698
call fcn.0043143f
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x41f68c
call fcn.0043143f
add edi, 0x1c
jmp 0x41f600
mov eax, dword [esi]
jmp 0x41f62f
mov eax, dword [esi]
jmp 0x41f682
xor edx, edx
test esi, esi
sete dl
lea eax, [esp + 0x498]
lea ecx, [esp + 0x290]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x41f6c4
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
lea edx, [esp + 0x40]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41f500
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x3c], 8
jb 0x41f6f3
mov eax, dword [esp + 0x28]
push eax
call fcn.00430dfa
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x6a4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68c]
xor ecx, esp
call fcn.004310bf
add esp, 0x69c
ret