Function at 0x452d70
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d29a4
mov eax, dword fs:[0]
push eax
sub esp, 0x170
push ebx
push esi
push edi
mov eax, dword [0x51501c]
xor eax, esp
push eax
lea eax, [esp + 0x180]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x1c], 0x10
lea esi, [edi + 4]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], esi
jb 0x452dbe
mov eax, dword [esi + 4]
jmp 0x452dc1
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x452de5
xor eax, eax
mov ecx, dword [esp + 0x180]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [edi]
sub edi, 1
js 0x452f91
push 1
push 3
lea ecx, [esp + 0xfc]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int_]
push 1
push 3
lea ecx, [esp + 0x74]
mov dword [esp + 0x190], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int_]
lea eax, [edi + 1]
push eax
lea ecx, [esp + 0x100]
mov byte [esp + 0x18c], 1
mov ebx, dword [sym.imp.MSVCP80.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_ostream_char__struct_std::char_traits_char_____class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push esi
push ecx
call ebx
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
test edi, edi
jne 0x452e53
lea edx, [esp + 0x74]
push esi
push edx
call ebx
add esp, 8
jmp 0x452e67
push edi
lea eax, [esp + 0x78]
push esi
push eax
call ebx
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x70]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
cmp dword [eax + 0x18], 0x10
mov bl, 1
jb 0x452e83
mov eax, dword [eax + 4]
jmp 0x452e86
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x452e94
xor bl, bl
lea ecx, [esp + 0x50]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
test bl, bl
jne 0x452ed0
lea ecx, [esp + 0x6c]
mov byte [esp + 0x188], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
lea ecx, [esp + 0xf4]
mov dword [esp + 0x188], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
jmp 0x452f88
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0xf8]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
mov esi, eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x18c], 2
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
mov ecx, 0x10
cmp dword [esi + 0x18], ecx
jb 0x452f0a
mov esi, dword [esi + 4]
jmp 0x452f0d
add esi, 4
cmp dword [eax + 0x18], ecx
jb 0x452f17
mov eax, dword [eax + 4]
jmp 0x452f1a
add eax, 4
push 3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea ecx, [esp + 0x18]
mov esi, eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x34]
mov byte [esp + 0x188], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
test edi, edi
jne 0x452f5a
neg esi
sbb esi, esi
and esi, 0x7fffbffb
add esi, 0x80004005
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x6c]
mov byte [esp + 0x188], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
lea ecx, [esp + 0xf4]
mov dword [esp + 0x188], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
mov esi, dword [esp + 0x14]
sub edi, 1
jns 0x452df0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x180]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret