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

Disassembly:
push ebp
lea ebp, [esp - 0x86c]
sub esp, 0x86c
push 0xffffffffffffffff
push 0x438ba8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x44cc80]
xor eax, ebp
mov dword [ebp + 0x868], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov esi, dword [ebp + 0x874]
mov dword [ebp - 0x4c], esi
mov eax, dword [ebp + 0x878]
mov dword [ebp - 0x1c], eax
xor edi, edi
push edi
push str.COperateFile::CopyDirectoryFile
lea ecx, [ebp - 0x54]
push ecx
call fcn.00405b00
add esp, 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], 0x800000
mov dword [ebp - 0x18], edi
mov edx, dword [ebx + 0xc]
mov dword [ebp - 0x3c], edx
mov byte [ebp - 4], 1
cmp esi, edi
je 0x408a7d
cmp dword [ebp - 0x1c], edi
je 0x408a7d
mov word [ebp + 0x250], di
push 0x206
push edi
lea eax, [ebp + 0x252]
push eax
call fcn.004250c0
add esp, 0xc
mov ecx, esi
mov dword [ebp - 0x30], ecx
mov esi, 0x104
mov dword [ebp - 0x44], esi
lea eax, [ebp + 0x250]
mov dword [ebp - 0x20], eax
mov edi, edi
cmp esi, edi
je 0x408763
movzx edx, word [ecx]
cmp dx, di
je 0x408769
mov word [eax], dx
add eax, 2
mov dword [ebp - 0x20], eax
add ecx, 2
mov dword [ebp - 0x30], ecx
sub esi, 1
mov dword [ebp - 0x44], esi
jmp 0x408740
sub eax, 2
mov dword [ebp - 0x20], eax
mov word [eax], di
lea ecx, [ebp + 0x250]
push ecx
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
call esi
mov edx, dword [ebp - 0x1c]
push edx
call esi
push 0x43f99c
mov edx, 0x104
lea edi, [ebp + 0x250]
call fcn.00404410
lea eax, [ebp]
push eax
mov ecx, edi
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x408a19
nop
push 0x43f9c0
lea edx, [ebp + 0x2c]
push edx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
call esi
test eax, eax
je 0x4089f5
push 0x43f9c4
lea eax, [ebp + 0x2c]
push eax
call esi
test eax, eax
je 0x4089f5
xor esi, esi
mov word [ebp + 0x458], si
push 0x206
push esi
lea ecx, [ebp + 0x45a]
push ecx
call fcn.004250c0
mov word [ebp + 0x660], si
push 0x206
push esi
lea edx, [ebp + 0x662]
push edx
call fcn.004250c0
lea eax, [ebp + 0x2c]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
push 0x43fe0c
mov eax, 0x104
lea edi, [ebp + 0x458]
call fcn.004049d0
lea edx, [ebp + 0x2c]
push edx
mov esi, dword [ebp - 0x1c]
push esi
push str._s_s
mov eax, 0x104
lea edi, [ebp + 0x660]
call fcn.004049d0
add esp, 0x30
test byte [ebp], 0x10
je 0x408903
mov eax, edi
push eax
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
jne 0x4088cf
push eax
mov ecx, edi
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov edx, edi
push edx
test eax, eax
jge 0x40889d
push 0x8080000b
mov eax, dword [ebx]
push eax
call fcn.00409990
add esp, 0xc
mov dword [ebp - 0x48], 0x8080ffff
push 0x44729c
lea ecx, [ebp - 0x48]
push ecx
call fcn.00426b1b
call esi
test eax, eax
jne 0x4088cf
lea eax, [ebp + 0x660]
push eax
push 0x8080000b
mov ecx, dword [ebx]
push ecx
call fcn.00409990
add esp, 0xc
mov dword [ebp - 0x40], 0x8080ffff
push 0x44729c
lea edx, [ebp - 0x40]
push edx
call fcn.00426b1b
lea eax, [ebp + 0x660]
push eax
lea ecx, [ebp + 0x458]
push ecx
mov ecx, ebx
call fcn.00408680
mov dword [ebp - 0x14], eax
cmp eax, 0x800000
je 0x4089f5
mov dword [ebp - 0x2c], eax
push 0x44729c
lea edx, [ebp - 0x2c]
push edx
call fcn.00426b1b
push esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call edi
test eax, eax
jne 0x40896f
push eax
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push esi
test eax, eax
jge 0x408943
push 0x8080000b
mov eax, dword [ebx]
push eax
call fcn.00409990
add esp, 0xc
mov dword [ebp - 0x24], 0x8080ffff
push 0x44729c
lea ecx, [ebp - 0x24]
push ecx
call fcn.00426b1b
call edi
test eax, eax
jne 0x40896f
push esi
push 0x8080000b
mov edx, dword [ebx]
push edx
call fcn.00409990
add esp, 0xc
mov dword [ebp - 0x34], 0x8080ffff
push 0x44729c
lea eax, [ebp - 0x34]
push eax
call fcn.00426b1b
push 0
lea ecx, [ebp + 0x660]
push ecx
lea edx, [ebp + 0x458]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4089bc
lea eax, [ebp + 0x458]
push eax
lea ecx, [ebp + 0x660]
push ecx
push 0x8080000f
mov edx, dword [ebx]
push edx
call fcn.00409990
add esp, 0x10
mov dword [ebp - 0x38], 0x8080ffff
push 0x44729c
lea eax, [ebp - 0x38]
push eax
call fcn.00426b1b
add dword [ebx + 4], 1
mov esi, dword [ebx + 4]
mov ecx, dword [ebx + 8]
cmp ecx, 0x64
jb 0x4089db
mov eax, 0x51eb851f
mul ecx
mov ecx, edx
shr ecx, 5
mov eax, esi
jmp 0x4089e0
mov eax, esi
imul eax, eax, 0x64
xor edx, edx
div ecx
test eax, eax
jne 0x4089ed
mov eax, 1
mov ecx, dword [ebp - 0x3c]
call fcn.004067b0
lea edx, [ebp]
push edx
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4087b0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x408a2e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x14]
push esi
push str.return_DWORD__d__n
push 2
lea eax, [ebp - 0x54]
push eax
call fcn.00404dc0
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00405a70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x868]
xor ecx, ebp
call fcn.004237ad
add ebp, 0x86c
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0x28], 0x8080ffff
push 0x44729c
lea eax, [ebp - 0x28]
push eax
call fcn.00426b1b
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0
mov eax, 0x408aa7
ret