Function at 0x406970
Capabilities:
Copy file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d26b
mov eax, dword fs:[0]
push eax
sub esp, 0xca8
mov eax, dword [0x43b050]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
lea ecx, [ebp - 0x950]
push 3
mov dword [ebp - 0x954], ecx
xor edi, edi
push eax
lea ecx, [ebp - 0x954]
mov dword [ebp - 0xcb0], edi
call fcn.004049f0
push 3
lea edx, [ebp - 0xa58]
mov dword [ebp - 4], edi
push esi
lea ecx, [ebp - 0xa5c]
mov dword [ebp - 0xa5c], edx
call fcn.004049f0
mov ecx, dword [ebp - 0x954]
lea eax, [ebp - 0xcac]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xcb4], eax
cmp eax, 0xffffffff
jne 0x406a2d
mov eax, dword [ebp - 0xa5c]
lea edx, [ebp - 0xa58]
cmp eax, edx
je 0x406a1a
push eax
call fcn.004202bd
add esp, 4
mov eax, dword [ebp - 0x954]
lea ecx, [ebp - 0x950]
cmp eax, ecx
jmp 0x406c10
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
test byte [ebp - 0xcac], 0x10
jne 0x406bc0
cmp dword [ebp - 0xc90], 0
jne 0x406bc0
mov eax, dword [ebp - 0xc8c]
cmp eax, 0x6400000
ja 0x406bc0
cmp dword [ebp - 0xcb0], 0xc8
jge 0x406bdc
add eax, edi
cmp eax, 0x6400000
ja 0x406bc0
xor edx, edx
push 0x208
push edx
lea eax, [ebp - 0x222]
push eax
mov word [ebp - 0x224], dx
call fcn.00421960
xor ecx, ecx
push 0x410
push ecx
lea edx, [ebp - 0x84a]
push edx
mov word [ebp - 0x84c], cx
call fcn.00421960
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x432]
push ecx
mov word [ebp - 0x434], ax
call fcn.00421960
mov edx, dword [ebp - 0x954]
push 0xffffffffffffffff
push edx
lea eax, [ebp - 0x224]
push 0x104
push eax
call fcn.004204c3
add esp, 0x34
lea ecx, [ebp - 0x224]
push ecx
call ebx
lea edx, [ebp - 0xc80]
push edx
lea eax, [ebp - 0x224]
push eax
call esi
mov ecx, dword [ebp - 0xa5c]
push 0xffffffffffffffff
push ecx
lea edx, [ebp - 0x84c]
push 0x104
push edx
call fcn.004204c3
push 0xffffffffffffffff
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x434]
push 0x104
push ecx
call fcn.004204c3
lea edx, [ebp - 0x434]
push 0x3a
push edx
call fcn.00420ca6
add esp, 0x28
test eax, eax
je 0x406b59
mov ecx, 0x5f
mov word [eax], cx
lea edx, [ebp - 0x434]
push 0x5c
push edx
call fcn.00420ca6
add esp, 8
test eax, eax
je 0x406b8a
mov edi, edi
mov ecx, 0x5f
mov word [eax], cx
add eax, 2
push 0x5c
push eax
call fcn.00420ca6
add esp, 8
test eax, eax
jne 0x406b70
lea edx, [ebp - 0x434]
push edx
lea eax, [ebp - 0x84c]
push eax
call esi
push 0
lea ecx, [ebp - 0x84c]
push ecx
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x406bc0
inc dword [ebp - 0xcb0]
add edi, dword [ebp - 0xc8c]
mov ecx, dword [ebp - 0xcb4]
lea eax, [ebp - 0xcac]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406a39
mov edx, dword [ebp - 0xcb4]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0xa5c]
lea ecx, [ebp - 0xa58]
cmp eax, ecx
je 0x406c02
push eax
call fcn.004202bd
add esp, 4
mov eax, dword [ebp - 0x954]
lea edx, [ebp - 0x950]
cmp eax, edx
je 0x406c1b
push eax
call fcn.004202bd
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041f86b
mov esp, ebp
pop ebp
ret 4