Function at 0x477749
Capabilities:
Enumerate files on windows
Move file

Disassembly:
mov eax, 0x4e243a
call fcn.004d1d50
sub esp, 0x2ec
mov eax, dword [0x52e400]
xor eax, ebp
push esi
mov esi, ecx
mov dword [ebp - 0x10], eax
lea eax, [esi + 0xff]
cmp byte [eax], 0
jne 0x477a38
mov ecx, dword [esi + 0x80]
push ebx
mov byte [eax], 1
push edi
lea eax, [ebp - 0x2d4]
push eax
xor bl, bl
call fcn.0047b141
mov ecx, dword [esi + 0x80]
lea eax, [ebp - 0x2d8]
push eax
call fcn.0047b14f
mov ecx, dword [ebp - 0x2d4]
cmp ecx, dword [eax]
mov edi, 0x4ec814
je 0x4778c7
cmp byte [ecx + 0x29], 0
je 0x47788b
lea eax, [ecx + 0xc]
push eax
lea eax, [esi + 0x88]
push eax
lea eax, [ebp - 0x2f8]
push eax
call fcn.0040fae0
and dword [ebp - 4], 0
push edi
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00407aea
add esp, 0x18
lea ecx, [ebp - 0x2f8]
mov byte [ebp - 4], 2
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_]
lea ecx, [ebp - 0x64]
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]
push eax
call fcn.00452260
mov eax, dword [ebp - 0x2d4]
cmp byte [eax + 0x2a], 0
pop ecx
je 0x47785f
add eax, 0xc
push eax
lea eax, [esi + 0xc0]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0040fae0
push edi
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 3
call fcn.00407aea
add esp, 0x18
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 4
call dword [0x4eb500]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
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_]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
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_]
lea ecx, [ebp - 0x64]
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]
push eax
call fcn.00452260
mov eax, dword [ebp - 0x2d4]
pop ecx
mov ecx, dword [esi + 0x80]
push eax
lea eax, [ebp - 0x2dc]
push eax
call fcn.0047bab6
mov eax, dword [eax]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x2d4], eax
mov bl, 1
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_]
jmp 0x477896
lea ecx, [ebp - 0x2d4]
call fcn.0043e835
mov ecx, dword [esi + 0x80]
lea eax, [ebp - 0x2d8]
push eax
call fcn.0047b14f
mov ecx, dword [ebp - 0x2d4]
cmp ecx, dword [eax]
jne 0x47779c
test bl, bl
je 0x4778c7
mov ecx, dword [esi + 0x80]
push 1
call fcn.0047be7f
lea ebx, [esi + 0x88]
push ebx
lea ecx, [ebp - 0x80]
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__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
push str.update.
lea ecx, [ebp - 0x80]
mov dword [ebp - 4], 5
call dword [sym.imp.MSVCP71.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__]
lea eax, [ebp - 0x2d0]
push eax
lea ecx, [ebp - 0x80]
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]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x2d8], eax
je 0x477a1d
test byte [ebp - 0x2d0], 0x10
je 0x477a02
lea eax, [ebp - 0x2a4]
push 0x4ec848
push eax
call dword [sym.imp.MSVCR71.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x477a02
lea eax, [ebp - 0x2a4]
push 0x4ec840
push eax
call dword [sym.imp.MSVCR71.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x477a02
push str.update_
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.00407aea
add esp, 0xc
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 6
call dword [sym.imp.MSVCP71.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 edi
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP71.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 ebx
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__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
call dword [sym.imp.MSVCP71.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__]
cmp byte [esi + 0x15c], 0
je 0x4779bc
lea eax, [ebp - 0x2a4]
push eax
mov ecx, esi
call fcn.00473b8f
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]
push eax
call fcn.00452260
pop ecx
push 8
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]
push eax
lea ecx, [ebp - 0x48]
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]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
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_]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 5
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_]
lea eax, [ebp - 0x2d0]
push eax
push dword [ebp - 0x2d8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x477912
push dword [ebp - 0x2d8]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
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_]
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
pop esi
call fcn.004d1da7
leave
ret