Function at 0x407b90
Capabilities:
Check if file exists
Copy file
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4bab90
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x4ce028]
xor eax, esp
mov dword [esp + 0x274], eax
push ebx
push esi
push edi
mov eax, dword [0x4ce028]
xor eax, esp
push eax
lea eax, [esp + 0x288]
mov dword fs:[0], eax
mov eax, dword [esp + 0x29c]
mov esi, dword [esp + 0x298]
mov edi, dword [esp + 0x2a8]
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], eax
call fcn.00407960
add esp, 4
test al, al
jne 0x407bfb
xor al, al
jmp 0x407e48
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407bf4
push 0
push edi
mov byte [esp + 0x1b], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete bl
mov dword [esp + 0x24], 0
test bl, bl
jne 0x407e46
jmp 0x407c34
mov esi, dword [esp + 0x28]
mov eax, 1
cmp dword [esp + 0x24], eax
jge 0x407e3c
push esi
lea ecx, [esp + 0x18]
call dword [0x4bd7a0]
push 0
lea ecx, [esp + 0x24]
mov dword [esp + 0x294], 0
call dword [0x4bd7a0]
mov byte [esp + 0x290], 1
mov eax, dword [esp + 0x20]
cmp dword [eax - 0xc], 0
jne 0x407c86
push 0x4bf538
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::TrimRight]
mov ecx, dword [esp + 0x14]
mov esi, dword [ecx - 0xc]
push 0x5c
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::ReverseFind]
dec esi
cmp eax, esi
je 0x407cb4
push 0x5c
lea ecx, [esp + 0x18]
call dword [0x4bd4cc]
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x18]
call dword [0x4bd4c4]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [esp + 0x30], esi
cmp esi, 0xffffffff
je 0x407e0f
cmp dword [esp + 0x2ac], 0
je 0x407cf1
call fcn.004075a0
cmp word [esp + 0x60], 0x2e
je 0x407ddc
mov edx, dword [esp + 0x28]
push edx
lea ecx, [esp + 0x20]
call dword [0x4bd7a0]
push 0x4bf53c
lea ecx, [esp + 0x20]
mov byte [esp + 0x294], 2
call dword [0x4bd4b8]
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
mov ecx, dword [esp + 0x2c]
push ecx
lea ecx, [esp + 0x1c]
call dword [0x4bd7a0]
push 0x4bf53c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x294], 3
call dword [0x4bd4b8]
lea edx, [esp + 0x60]
push edx
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
test byte [esp + 0x34], 0x10
je 0x407d9f
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
lea ecx, [esp + 0x1c]
mov esi, eax
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push 1
push edi
push 0
push 1
push esi
push eax
call fcn.00407b90
mov esi, dword [esp + 0x48]
add esp, 0x18
mov byte [esp + 0x13], al
jmp 0x407dc0
cmp dword [esp + 0x24], 0
jne 0x407dc0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
sete byte [esp + 0x13]
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x290], 1
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete bl
test bl, bl
jne 0x407e08
cmp byte [esp + 0x13], bl
je 0x407e08
lea edx, [esp + 0x34]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407ce2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x14]
mov dword [esp + 0x290], 0xffffffff
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
inc dword [esp + 0x24]
test bl, bl
je 0x407c30
jmp 0x407e46
test bl, bl
jne 0x407e46
cmp byte [esp + 0x13], bl
jne 0x407e48
xor eax, eax
mov ecx, dword [esp + 0x288]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x274]
xor ecx, esp
call fcn.0042bebe
add esp, 0x284
ret