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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8ef1
mov eax, dword fs:[0]
push eax
sub esp, 0x5d4
mov eax, dword [0x525258]
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 eax, dword [ebp + 8]
xor edi, edi
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x478], edi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push dword [eax]
mov dword [ebp - 0x498], eax
mov dword [ebp - 0x488], ebx
call esi
test eax, eax
jne 0x41e2f5
lea eax, [ebp - 0x494]
push eax
call fcn.004239f0
add esp, 4
mov ecx, dword [eax]
mov dword [ebp - 4], edi
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov esi, dword [ebp - 0x490]
mov byte [ebp - 0x469], al
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x41e293
or ebx, 0xffffffff
mov ecx, ebx
lock xadd dword [esi + 4], ecx
jne 0x41e293
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x41e28d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp - 0x469]
test al, al
je 0x41eb45
lea eax, [ebp - 0x494]
push eax
call fcn.004239f0
add esp, 4
mov edi, dword [eax]
lea ecx, [ebp - 0x5e0]
mov dword [ebp - 4], 1
call fcn.0040dcb0
mov esi, eax
push str.The_from_folder_is_not_exists
push esi
mov byte [ebp - 4], 2
call fcn.0040e270
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 8]
lea ecx, [ebp - 0x5e0]
call fcn.00405da0
lea ecx, [ebp - 0x494]
call fcn.00405880
jmp 0x41eb45
push dword [ebx]
call esi
test eax, eax
je 0x41e306
push ebx
call fcn.0041eb80
add esp, 4
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41e3f5
lea eax, [ebp - 0x494]
push eax
call fcn.004239f0
add esp, 4
mov ecx, dword [eax]
mov dword [ebp - 4], 3
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov esi, dword [ebp - 0x490]
mov byte [ebp - 0x469], al
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x41e375
or ebx, 0xffffffff
mov ecx, ebx
lock xadd dword [esi + 4], ecx
jne 0x41e375
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x41e36f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp - 0x469]
test al, al
je 0x41eb45
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea eax, [ebp - 0x494]
push eax
call fcn.004239f0
add esp, 4
mov edi, dword [eax]
lea ecx, [ebp - 0x5e0]
mov dword [ebp - 4], 4
call fcn.0040dcb0
mov esi, eax
push str.Create_folder_
push esi
mov byte [ebp - 4], 5
call fcn.0040e270
mov eax, dword [ebp - 0x488]
mov edx, 0x4f6970
mov ecx, dword [eax]
test ecx, ecx
cmovne edx, ecx
push edx
push esi
call fcn.00404140
push str._failed__error_code_
push esi
call fcn.0040e270
add esp, 0x18
mov ecx, esi
push ebx
call fcn.0040dfd0
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 8]
jmp 0x41e2da
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00491120
mov eax, dword [ebp - 0x498]
add esp, 0xc
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [eax]
lea eax, [ebp - 0x218]
push eax
call esi
push 0x4f74d0
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x470], eax
cmp eax, 0xffffffff
je 0x41ea64
test eax, eax
je 0x41ea64
or ebx, 0xffffffff
mov esi, eax
cmp word [ebp - 0x43c], 0x2e
mov ax, word [ebp - 0x43a]
jne 0x41e47a
test ax, ax
je 0x41ea42
cmp ax, 0x2e
jne 0x41e48e
cmp word [ebp - 0x438], 0
je 0x41ea42
mov eax, dword [ebp - 0x498]
mov dword [ebp - 4], 9
mov eax, dword [eax]
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x41e4ad
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x41e4c1
call fcn.00417b20
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
test eax, eax
je 0x41eb6b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
or edi, 1
mov dword [ebp - 0x484], edi
mov dword [ebp - 0x478], edi
lea esi, [eax + 0x10]
mov eax, dword [ebp - 0x498]
mov dword [ebp - 0x49c], esi
mov eax, dword [eax]
mov dword [ebp - 0x48c], eax
mov edi, dword [eax - 0xc]
mov dword [ebp - 0x480], edi
lea edx, [edi + 1]
test edx, edx
js 0x41eb61
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x41e525
push edx
lea ecx, [ebp - 0x49c]
call fcn.00403e30
mov esi, dword [ebp - 0x49c]
add edi, edi
push edi
push dword [ebp - 0x48c]
push edi
push esi
call fcn.0041fc80
lea ecx, [edi + esi]
add esp, 0x10
test ecx, ecx
jne 0x41e551
call fcn.0049b79d
mov dword [eax], 0x16
call fcn.0049b676
jmp 0x41e55a
mov ax, word [0x4f65ac]
mov word [ecx], ax
mov eax, dword [ebp - 0x480]
inc eax
cmp eax, dword [esi - 8]
jg 0x41eb61
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x474]
push eax
call fcn.004144e0
add esp, 0xc
mov edi, dword [ebp - 0x484]
and edi, 0xfffffffe
mov dword [ebp - 0x478], edi
mov dword [ebp - 0x48c], edi
mov byte [ebp - 4], 0xb
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41e5c0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x474]
test eax, eax
je 0x41eb6b
mov ecx, dword [ebp - 0x488]
mov edx, eax
mov ecx, dword [ecx]
mov si, word [ecx]
cmp si, word [edx]
jne 0x41e5fe
test si, si
je 0x41e5fa
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x41e5fe
add ecx, 4
add edx, 4
test si, si
jne 0x41e5d8
xor ecx, ecx
jmp 0x41e603
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x41e60f
lea edx, [eax - 0x10]
jmp 0x41ea21
mov eax, dword [ebp - 0x488]
mov byte [ebp - 4], 0xc
mov ecx, dword [eax]
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x41e62b
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x41e63f
call fcn.00417b20
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
test eax, eax
je 0x41eb6b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
or edi, 4
mov dword [ebp - 0x478], edi
lea esi, [eax + 0x10]
mov eax, dword [ebp - 0x488]
mov dword [ebp - 0x4a0], esi
mov eax, dword [eax]
mov dword [ebp - 0x484], eax
mov edi, dword [eax - 0xc]
mov dword [ebp - 0x480], edi
lea edx, [edi + 1]
test edx, edx
js 0x41eb61
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x41e69d
push edx
lea ecx, [ebp - 0x4a0]
call fcn.00403e30
mov esi, dword [ebp - 0x4a0]
add edi, edi
push edi
push dword [ebp - 0x484]
push edi
push esi
call fcn.0041fc80
lea ecx, [edi + esi]
add esp, 0x10
test ecx, ecx
jne 0x41e6c9
call fcn.0049b79d
mov dword [eax], 0x16
call fcn.0049b676
jmp 0x41e6d2
mov ax, word [0x4f65ac]
mov word [ecx], ax
mov eax, dword [ebp - 0x480]
inc eax
cmp eax, dword [esi - 8]
jg 0x41eb61
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x4a0]
push eax
lea eax, [ebp - 0x47c]
push eax
call fcn.004144e0
add esp, 0xc
mov edi, dword [ebp - 0x48c]
and edi, 0xfffffffb
mov dword [ebp - 0x478], edi
mov byte [ebp - 4], 0xe
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41e732
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test byte [ebp - 0x468], 0x10
je 0x41e756
lea eax, [ebp - 0x47c]
push eax
lea eax, [ebp - 0x474]
push eax
call fcn.0041e1e0
add esp, 8
jmp 0x41e9f7
push 0
push dword [ebp - 0x47c]
push dword [ebp - 0x474]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x484], eax
lea eax, [ebp - 0x4a8]
push eax
call fcn.004239f0
add esp, 4
mov ecx, dword [eax]
mov byte [ebp - 4], 0xf
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov esi, dword [ebp - 0x4a4]
mov byte [ebp - 0x469], al
mov byte [ebp - 4], 0xe
test esi, esi
je 0x41e7c5
mov ecx, ebx
lock xadd dword [esi + 4], ecx
jne 0x41e7c5
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x41e7bf
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp - 0x469]
test al, al
je 0x41e9f7
lea eax, [ebp - 0x548]
push eax
call fcn.004239f0
add esp, 4
mov eax, dword [eax]
mov dword [ebp - 0x480], eax
lea eax, [ebp - 0x540]
mov dword [ebp - 0x48c], eax
mov dword [ebp - 0x540], 0x4f6960
mov dword [ebp - method.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
push 0
push 0
lea eax, [ebp - 0x53c]
mov byte [ebp - 4], 0x11
or edi, 0x10
lea ecx, [ebp - 0x540]
push eax
mov dword [ebp - 0x478], edi
call fcn.0040d4d0
mov eax, dword [ebp - 0x540]
push 8
mov dword [ebp - 4], 0x12
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0x540]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x544], eax
mov dword [ebp - method.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0045652a
mov esi, eax
add esp, 4
test esi, esi
je 0x41e882
push 1
mov byte [ebp - 4], 0x13
call fcn.0042c673
add esp, 4
mov dword [esi + 4], eax
jmp 0x41e884
xor esi, esi
lea eax, [ebp - 0x538]
mov dword [ebp - 0x508], esi
mov dword [ebp - 0x530], eax
lea eax, [ebp - 0x534]
mov dword [ebp - 0x52c], eax
lea eax, [ebp - 0x528]
mov dword [ebp - 0x520], eax
lea eax, [ebp - 0x524]
mov dword [ebp - 0x51c], eax
lea eax, [ebp - 0x518]
mov dword [ebp - 0x510], eax
lea eax, [ebp - 0x514]
mov dword [ebp - 0x50c], eax
mov dword [ebp - 0x534], 0
mov dword [ebp - 0x524], 0
mov dword [ebp - 0x514], 0
mov dword [ebp - 0x538], 0
mov dword [ebp - 0x528], 0
mov dword [ebp - 0x518], 0
mov dword [ebp - method.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0x504], 0
mov dword [ebp - 0x500], 4
lea eax, [ebp - 0x540]
mov byte [ebp - 4], 0x14
push str.CopyFile
push eax
call fcn.0040e270
mov eax, dword [ebp - 0x474]
mov ecx, 0x4f6970
test eax, eax
cmovne ecx, eax
lea eax, [ebp - 0x540]
push ecx
push eax
call fcn.00404140
lea eax, [ebp - 0x540]
push str._to
push eax
call fcn.0040e270
mov eax, dword [ebp - 0x47c]
mov ecx, 0x4f6970
test eax, eax
cmovne ecx, eax
lea eax, [ebp - 0x540]
push ecx
push eax
call fcn.00404140
lea eax, [ebp - 0x540]
push str.__res_
push eax
call fcn.0040e270
add esp, 0x28
lea ecx, [ebp - 0x540]
push dword [ebp - 0x484]
call fcn.00414180
mov ecx, dword [ebp - 0x480]
lea edx, [ebp - 0x540]
push edx
mov eax, dword [ecx]
call dword [eax + 8]
lea ecx, [ebp - 0x540]
call fcn.00405da0
mov esi, dword [ebp - 0x544]
test esi, esi
je 0x41e9f7
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x41e9f7
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x41e9f7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edx, dword [ebp - 0x47c]
mov eax, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 0xb
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41ea18
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x474]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41ea3c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x470]
lea eax, [ebp - 0x468]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41e460
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x41eb45
lea eax, [ebp - 0x4a8]
push eax
call fcn.004239f0
add esp, 4
mov ecx, dword [eax]
mov dword [ebp - 4], 6
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov edi, dword [ebp - 0x4a4]
or esi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov bl, al
test edi, edi
je 0x41eab8
mov ecx, esi
lock xadd dword [edi + 4], ecx
jne 0x41eab8
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x41eab8
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
test bl, bl
je 0x41eb45
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea eax, [ebp - 0x4a8]
push eax
call fcn.004239f0
add esp, 4
mov edi, dword [eax]
lea ecx, [ebp - 0x5e0]
mov dword [ebp - 4], 7
call fcn.0040dcb0
mov esi, eax
push str.FindFirstFile_failed__error_code_
push esi
mov byte [ebp - 4], 8
call fcn.0040e270
add esp, 8
mov ecx, esi
push ebx
call fcn.0040dfd0
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 8]
lea ecx, [ebp - 0x5e0]
call fcn.00405da0
mov esi, dword [ebp - 0x4a4]
test esi, esi
je 0x41eb45
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x41eb45
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x41eb45
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
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.004564ea
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402d90
push 0x80004005
call fcn.00402d90
int3