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

Disassembly:
push 0xffffffffffffffff
push 0x404593
mov eax, dword fs:[0]
push eax
sub esp, 0x380
mov eax, dword [0x408020]
xor eax, esp
mov dword [esp + 0x378], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x408020]
xor eax, esp
push eax
lea eax, [esp + 0x394]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x1c], ebx
push 0x4052a0
sub esp, 0x1c
lea eax, [esp + 0x3c4]
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
mov dword [esp + 0x3c0], ebx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea esi, [esp + 0xd0]
call fcn.00401460
add esp, 0x1c
push eax
lea ecx, [esp + 0x128]
mov byte [esp + 0x3a4], 1
mov edi, dword [sym.imp.MSVCP90.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_const__]
push ecx
call edi
add esp, 0xc
mov ecx, esi
mov byte [esp + 0x39c], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea esi, [esp + 0x104]
call fcn.004012f0
push 1
push str._new_folder______________________________________________________________________________________________________________________.exe
sub esp, 0x1c
lea edx, [esp + 0x3c8]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
mov byte [esp + 0x3c4], 4
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea esi, [esp + 0x64]
call fcn.00401460
add esp, 0x1c
push eax
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x3ac], 5
call edi
mov ebp, 8
add esp, 0xc
cmp dword [eax + 0x18], ebp
jb 0x40194f
mov eax, dword [eax + 4]
jmp 0x401952
add eax, 4
mov ecx, dword [esp + 0x10c]
cmp dword [esp + 0x120], ebp
jae 0x401969
lea ecx, [esp + 0x10c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x40]
mov byte [esp + 0x39c], 4
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [esp + 0x124]
cmp dword [esp + 0x138], ebp
jae 0x4019a4
lea eax, [esp + 0x124]
lea ecx, [esp + 0x13c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
je 0x401bfe
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x13c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4019e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x401bfe
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpW]
push 0x4052a8
lea ecx, [esp + 0x16c]
push ecx
call esi
test eax, eax
je 0x401aa4
push 0x4052b0
lea edx, [esp + 0x16c]
push edx
call esi
test eax, eax
je 0x401aa4
lea eax, [esp + 0x168]
push eax
push 0x4052b4
sub esp, 0x1c
lea edx, [esp + 0x3c8]
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea esi, [esp + 0x80]
call fcn.00401460
add esp, 0x1c
push eax
lea eax, [esp + 0x30]
mov byte [esp + 0x3a8], 6
or ebx, 1
push eax
mov dword [esp + 0x2c], ebx
call edi
add esp, 0xc
push eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x3a4], 7
or ebx, 2
push ecx
mov dword [esp + 0x28], ebx
call edi
add esp, 0xc
or ebx, 4
cmp dword [eax + 0x18], ebp
jb 0x401a91
mov eax, dword [eax + 4]
jmp 0x401a94
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov byte [esp + 0x1b], 1
test eax, eax
jne 0x401aa9
mov byte [esp + 0x1b], 0
test bl, 4
je 0x401abf
and ebx, 0xfffffffb
lea ecx, [esp + 0x40]
mov dword [esp + 0x1c], ebx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov dword [esp + 0x39c], 6
test bl, 2
je 0x401ae0
and ebx, 0xfffffffd
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], ebx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov dword [esp + 0x39c], 4
test bl, 1
je 0x401afd
lea ecx, [esp + 0x5c]
and ebx, 0xfffffffe
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp byte [esp + 0x1b], 0
je 0x4019c0
push 1
push str._new_folder______________________________________________________________________________________________________________________.exe
lea edx, [esp + 0x170]
push edx
push 0x4052b4
sub esp, 0x1c
lea eax, [esp + 0x3d0]
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea esi, [esp + 0x114]
call fcn.00401460
add esp, 0x1c
push eax
lea ecx, [esp + 0xe0]
push ecx
mov byte [esp + 0x3b4], 8
call edi
add esp, 0xc
push eax
lea edx, [esp + 0xa4]
push edx
mov byte [esp + 0x3b0], 9
call edi
add esp, 0xc
push eax
lea eax, [esp + 0x84]
push eax
mov byte [esp + 0x3ac], 0xa
call edi
add esp, 0xc
cmp dword [eax + 0x18], ebp
jb 0x401b8e
mov eax, dword [eax + 4]
jmp 0x401b91
add eax, 4
mov ecx, dword [esp + 0x10c]
cmp dword [esp + 0x120], ebp
jae 0x401ba8
lea ecx, [esp + 0x10c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x94]
mov byte [esp + 0x39c], 9
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0xcc]
mov byte [esp + 0x39c], 8
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0xe8]
mov byte [esp + 0x39c], 4
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
jmp 0x4019c0
lea ecx, [esp + 0x104]
mov byte [esp + 0x39c], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x120]
mov byte [esp + 0x39c], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x3a4]
mov dword [esp + 0x39c], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [esp + 0x394]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x378]
xor ecx, esp
call fcn.0040382c
add esp, 0x38c
ret