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

Disassembly:
push 0xffffffffffffffff
push 0x428bf0
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x435028]
xor eax, esp
mov dword [esp + 0x274], eax
push ebx
push esi
push edi
mov eax, dword [0x435028]
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.00405080
add esp, 4
test al, al
jne 0x40531b
xor al, al
jmp 0x405568
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405314
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 0x405566
jmp 0x405354
mov esi, dword [esp + 0x28]
mov eax, 1
cmp dword [esp + 0x24], eax
jge 0x40555c
push esi
lea ecx, [esp + 0x18]
call dword [0x42b438]
push 0
lea ecx, [esp + 0x24]
mov dword [esp + 0x294], 0
call dword [0x42b438]
mov byte [esp + 0x290], 1
mov eax, dword [esp + 0x20]
cmp dword [eax - 0xc], 0
jne 0x4053a6
push 0x42c86c
lea ecx, [esp + 0x24]
call dword [0x42b43c]
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 0x4053d4
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_____::operator_3]
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
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 0x40552f
cmp dword [esp + 0x2ac], 0
je 0x405411
call fcn.00404cb0
cmp word [esp + 0x60], 0x2e
je 0x4054fc
mov edx, dword [esp + 0x28]
push edx
lea ecx, [esp + 0x20]
call dword [0x42b438]
push 0x42c870
lea ecx, [esp + 0x20]
mov byte [esp + 0x294], 2
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x20]
call dword [0x42b31c]
mov ecx, dword [esp + 0x2c]
push ecx
lea ecx, [esp + 0x1c]
call dword [0x42b438]
push 0x42c870
lea ecx, [esp + 0x1c]
mov byte [esp + 0x294], 3
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
lea edx, [esp + 0x60]
push edx
lea ecx, [esp + 0x1c]
call dword [0x42b31c]
test byte [esp + 0x34], 0x10
je 0x4054bf
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.004052b0
mov esi, dword [esp + 0x48]
add esp, 0x18
mov byte [esp + 0x13], al
jmp 0x4054e0
cmp dword [esp + 0x24], 0
jne 0x4054e0
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 0x405528
cmp byte [esp + 0x13], bl
je 0x405528
lea edx, [esp + 0x34]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405402
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 0x405350
jmp 0x405566
test bl, bl
jne 0x405566
cmp byte [esp + 0x13], bl
jne 0x405568
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.00427762
add esp, 0x284
ret