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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4186d4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x410
push ebx
push esi
push edi
lea edi, [ebp - 0x41c]
mov ecx, 0x104
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 4], 1
mov esi, esp
lea ecx, [ebp + 8]
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::length_void_const]
cmp esi, esp
call fcn.0041561c
test eax, eax
je 0x40e906
mov esi, esp
lea ecx, [ebp + 0x24]
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::length_void_const]
cmp esi, esp
call fcn.0041561c
test eax, eax
jne 0x40e93a
mov byte [ebp - 4], 0
mov esi, esp
lea ecx, [ebp + 8]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp esi, esp
call fcn.0041561c
mov dword [ebp - 4], 0xffffffff
mov esi, esp
lea ecx, [ebp + 0x24]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp esi, esp
call fcn.0041561c
jmp 0x40ecda
mov esi, esp
push 0
lea ecx, [ebp + 8]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator___unsigned_int_]
cmp esi, esp
call fcn.0041561c
movzx eax, word [eax]
cmp eax, 0x5c
je 0x40e989
mov esi, esp
push 0
lea ecx, [ebp + 8]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator___unsigned_int_]
cmp esi, esp
call fcn.0041561c
movzx eax, word [eax]
cmp eax, 0x2f
je 0x40e989
mov esi, esp
push 0x41a974
lea ecx, [ebp + 8]
call dword [0x41a188]
cmp esi, esp
call fcn.0041561c
mov esi, esp
push 0
lea ecx, [ebp + 0x24]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator___unsigned_int_]
cmp esi, esp
call fcn.0041561c
movzx eax, word [eax]
cmp eax, 0x5c
je 0x40e9d8
mov esi, esp
push 0
lea ecx, [ebp + 0x24]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator___unsigned_int_]
cmp esi, esp
call fcn.0041561c
movzx eax, word [eax]
cmp eax, 0x2f
je 0x40e9d8
mov esi, esp
push 0x41a974
lea ecx, [ebp + 0x24]
call dword [0x41a188]
cmp esi, esp
call fcn.0041561c
mov esi, esp
lea ecx, [ebp + 0x24]
call dword [sym.imp.MSVCP71.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]
cmp esi, esp
call fcn.0041561c
push eax
call fcn.0040c9cd
add esp, 4
push 0x41b6c8
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00401149
add esp, 0xc
mov byte [ebp - 4], 2
mov esi, esp
lea eax, [ebp - 0x284]
push eax
mov edi, esp
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.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]
cmp edi, esp
call fcn.0041561c
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp esi, esp
call fcn.0041561c
mov dword [ebp - 0x290], eax
cmp dword [ebp - 0x290], 0xffffffff
je 0x40ec95
mov esi, esp
push 0x41b154
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.MSVCR71.dll__wcsicmp]
add esp, 8
cmp esi, esp
call fcn.0041561c
test eax, eax
je 0x40ea8c
mov esi, esp
push 0x41b14c
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.MSVCR71.dll__wcsicmp]
add esp, 8
cmp esi, esp
call fcn.0041561c
test eax, eax
jne 0x40ea91
jmp 0x40ec5a
mov eax, dword [ebp - 0x284]
and eax, 0x10
je 0x40ebaf
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp + 0x24]
push ecx
lea edx, [ebp - 0x3ec]
push edx
call fcn.00401149
add esp, 0xc
mov dword [ebp - 0x400], eax
mov eax, dword [ebp - 0x400]
mov dword [ebp - 0x404], eax
mov byte [ebp - 4], 3
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x3f8], esp
push 0x41a974
mov edx, dword [ebp - 0x404]
push edx
push ecx
call fcn.00401149
add esp, 0xc
mov dword [ebp - 0x408], eax
mov eax, dword [ebp - 0x408]
mov dword [ebp - 0x40c], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x258]
push ecx
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x3bc]
push eax
call fcn.00401149
add esp, 0xc
mov dword [ebp - 0x410], eax
mov ecx, dword [ebp - 0x410]
mov dword [ebp - 0x414], ecx
mov byte [ebp - 4], 5
sub esp, 0x1c
mov edx, esp
mov dword [ebp - 0x3c8], esp
push 0x41a974
mov eax, dword [ebp - 0x414]
push eax
push edx
call fcn.00401149
add esp, 0xc
mov dword [ebp - 0x418], eax
mov ecx, dword [ebp - 0x418]
mov dword [ebp - 0x41c], ecx
mov byte [ebp - 4], 6
mov byte [ebp - 4], 7
call fcn.0040e8a0
add esp, 0x38
mov byte [ebp - 4], 3
mov esi, esp
lea ecx, [ebp - 0x3bc]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp esi, esp
call fcn.0041561c
mov byte [ebp - 4], 2
mov esi, esp
lea ecx, [ebp - 0x3ec]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp esi, esp
call fcn.0041561c
jmp 0x40ec5a
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x2b4]
push edx
call fcn.00401149
add esp, 0xc
mov byte [ebp - 4], 8
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp + 0x24]
push ecx
lea edx, [ebp - 0x2d8]
push edx
call fcn.00401149
add esp, 0xc
mov byte [ebp - 4], 9
mov esi, esp
push 1
mov edi, esp
lea ecx, [ebp - 0x2d8]
call dword [sym.imp.MSVCP71.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]
cmp edi, esp
call fcn.0041561c
push eax
mov edi, esp
lea ecx, [ebp - 0x2b4]
call dword [sym.imp.MSVCP71.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]
cmp edi, esp
call fcn.0041561c
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp esi, esp
call fcn.0041561c
mov byte [ebp - 4], 8
mov esi, esp
lea ecx, [ebp - 0x2d8]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp esi, esp
call fcn.0041561c
mov byte [ebp - 4], 2
mov esi, esp
lea ecx, [ebp - 0x2b4]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp esi, esp
call fcn.0041561c
mov esi, esp
lea eax, [ebp - 0x284]
push eax
mov ecx, dword [ebp - 0x290]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp esi, esp
call fcn.0041561c
test eax, eax
jne 0x40ea48
mov esi, esp
mov eax, dword [ebp - 0x290]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, esp
call fcn.0041561c
mov byte [ebp - 4], 1
mov esi, esp
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp esi, esp
call fcn.0041561c
mov byte [ebp - 4], 0
mov esi, esp
lea ecx, [ebp + 8]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp esi, esp
call fcn.0041561c
mov dword [ebp - 4], 0xffffffff
mov esi, esp
lea ecx, [ebp + 0x24]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp esi, esp
call fcn.0041561c
push edx
mov ecx, ebp
push eax
lea edx, [0x40ed0c]
call fcn.0041563f
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x41c
cmp ebp, esp
call fcn.0041561c
mov esp, ebp
pop ebp
ret