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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1edf
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x4ed4e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x27c], edi
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [edi]
cmp dword [eax - 0xc], esi
mov eax, dword [ebp + 0xc]
je 0x4199af
cmp dword [eax - 0xc], esi
je 0x4199af
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x419698
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4199c6
push 0x24c
lea ecx, [ebp - 0x25c]
push esi
push ecx
mov dword [ebp - 0x260], esi
call fcn.0048ac40
lea edx, [ebp - 0x274]
push edi
push edx
mov ebx, 0x4c4af0
call fcn.00406680
mov eax, dword [eax]
add esp, 0x14
lea ecx, [ebp - 0x260]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov eax, dword [ebp - 0x274]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4196f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, 0xffffffff
jne 0x419709
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0xc]
jmp 0x4199b6
lea ecx, [ebp - 0x260]
push ecx
push edi
mov dword [ebp - 0x270], 1
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x41997a
lea edx, [ebp - 0x234]
push edx
lea ecx, [ebp - 0x264]
call fcn.00401bb0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x264]
mov ecx, 0x4c42f4
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x419776
test dx, dx
je 0x419772
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x419776
add eax, 4
add ecx, 4
test dx, dx
jne 0x419750
xor eax, eax
jmp 0x41977b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x41993c
lea eax, [ebp - 0x264]
push eax
mov ecx, 0x4c4af8
call fcn.0041a380
add esp, 4
test al, al
jne 0x41993c
mov ecx, dword [ebp - 0x27c]
push ecx
lea edx, [ebp - 0x280]
push edx
mov ebx, 0x4c43b8
call fcn.00406680
lea ecx, [ebp - 0x264]
push ecx
lea edx, [ebp - 0x268]
push edx
mov ebx, eax
mov byte [ebp - 4], 2
call fcn.00407e10
add esp, 0x10
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x280]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4197fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp - 0x278]
push edx
mov ebx, 0x4c43b8
call fcn.00406680
lea ecx, [ebp - 0x264]
push ecx
lea edx, [ebp - 0x26c]
push edx
mov ebx, eax
mov byte [ebp - 4], 5
call fcn.00407e10
add esp, 0x10
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x278]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419855
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov bl, 1
test byte [ebp - 0x260], bl
je 0x419871
mov ecx, dword [ebp - 0x268]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [ebp - 0x260], 0x10
mov eax, dword [ebp - 0x26c]
je 0x4198ab
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x284], esp
mov esi, esp
push eax
call fcn.00401550
lea edx, [ebp - 0x268]
add esp, 4
add eax, 0x10
push edx
mov dword [esi], eax
call fcn.00419610
add esp, 8
jmp 0x4198bb
mov ecx, dword [ebp - 0x268]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4198c5
mov dword [ebp - 0x270], eax
lea edx, [ebp - 0x260]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x26c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4198fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419920
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x419966
lea ecx, [ebp - 0x260]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x419972
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x419729
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4199a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x270]
jmp 0x4199d4
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4199d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00485532
mov esp, ebp
pop ebp
ret