Function at 0x499580
Capabilities:
Copy file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58f462
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x610304]
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 esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
cmp esi, ebx
mov dword [ebp - 0x29c], eax
je 0x499654
cmp eax, ebx
je 0x499654
push 1
push eax
call fcn.00499420
add esp, 8
test eax, eax
je 0x499654
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push 0x5b03fc
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call dword [0x5a3464]
push 0x24c
lea eax, [ebp - 0x294]
push ebx
push eax
mov dword [ebp - 0x298], ebx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x298]
push ecx
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x499672
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
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.00584870
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x29c]
push edx
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push 0x5c
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_]
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x48]
call dword [0x5a3464]
push esi
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push 0x5c
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_]
lea ecx, [ebp - 0x26c]
push ecx
lea ecx, [ebp - 0x2c]
call dword [0x5a3464]
test byte [ebp - 0x298], 0x10
je 0x49976d
mov ecx, 0x5a7b3c
lea eax, [ebp - 0x26c]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x499706
cmp dx, bx
je 0x499702
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x499706
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x4996e0
xor eax, eax
jmp 0x49970b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x499794
mov ecx, 0x5d1de0
lea eax, [ebp - 0x26c]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x499746
cmp dx, bx
je 0x499742
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x499746
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x499720
xor eax, eax
jmp 0x49974b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x499794
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call fcn.00499580
add esp, 8
jmp 0x499794
push ebx
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x499794
push 2
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x298]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x499672
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, 1
jmp 0x499656