Function at 0x442560
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x497c30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe4
mov eax, dword [0x4bdc98]
push esi
mov esi, ecx
push 0x4a3558
lea ecx, [esp + 0x78]
mov dword [esp + 0xe8], eax
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push 0x4a3558
lea ecx, [esp + 0xcc]
mov dword [esp + 0xf4], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push esi
lea ecx, [esp + 0x94]
mov byte [esp + 0xf4], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov eax, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov eax, dword [eax]
push 1
push eax
push 0x4a78f8
lea ecx, [esp + 0x9c]
mov byte [esp + 0xfc], 2
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_last_of_char_const___unsigned_int__unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [ecx]
cmp eax, edx
je 0x442109
push edi
mov ecx, edx
push ecx
lea edi, [eax + 1]
push edi
lea edx, [esp + 0x64]
push edx
lea ecx, [esp + 0xa0]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0xf8], 3
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x5c]
mov byte [esp + 0xf4], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push edi
push 0
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0xa0]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [esp + 0xd0]
mov byte [esp + 0xf8], 4
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x5c]
mov byte [esp + 0xf4], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
pop edi
push 0x4a3558
lea ecx, [esp + 0xb0]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov eax, dword [esi + 0x108]
cmp eax, 1
mov byte [esp + 0xf0], 5
jne 0x442220
mov eax, dword [esi + 0x52c]
test eax, eax
je 0x442146
push eax
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [esp + 0x10]
movzx ecx, word [esp + 0xe]
xor edx, edx
mov dword [esp + 0x4d], edx
mov dword [esp + 0x51], edx
push eax
movzx eax, word [esp + 0xe]
mov word [esp + 0x59], dx
push ecx
movzx ecx, word [esp + 0xe]
mov byte [esp + 0x5f], dl
movzx edx, word [esp + 0x14]
push edx
push eax
push ecx
lea edx, [esp + 0x60]
push str._02d_02d_02d_02d_02d
push edx
mov byte [esp + 0x68], 0
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0x1c
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x5c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push 0x5f
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0xfc], 6
call fcn.00402100
lea ecx, [esp + 0x80]
push ecx
push eax
lea edx, [esp + 0x44]
push edx
mov byte [esp + 0x108], 7
call fcn.00401f80
add esp, 0x18
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0xf4], 8
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x30]
mov byte [esp + 0xf0], 7
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x14]
mov byte [esp + 0xf0], 6
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x58]
jmp 0x442308
cmp eax, 2
jne 0x442316
mov eax, dword [esi + 0x52c]
test eax, eax
je 0x44223d
push eax
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
mov eax, dword [0x4c07d8]
mov ecx, dword [esi + 0x528]
inc eax
cmp eax, ecx
mov dword [0x4c07d8], eax
jle 0x44225c
mov eax, 1
mov dword [0x4c07d8], eax
xor ecx, ecx
mov dword [esp + 0x4d], ecx
push eax
mov dword [esp + 0x55], ecx
lea edx, [esp + 0x50]
mov word [esp + 0x59], cx
push 0x4a5150
push edx
mov byte [esp + 0x58], 0
mov byte [esp + 0x63], cl
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x5c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push 0x4a78fc
push eax
lea ecx, [esp + 0x38]
push ecx
mov byte [esp + 0xfc], 9
call fcn.00402080
lea edx, [esp + 0x80]
push edx
push eax
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x108], 0xa
call fcn.00401f80
add esp, 0x18
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0xf4], 0xb
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x14]
mov byte [esp + 0xf0], 0xa
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x30]
mov byte [esp + 0xf0], 9
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x58]
mov byte [esp + 0xf0], 5
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0xcc]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00401f80
add esp, 0xc
push eax
lea ecx, [esp + 0xb0]
mov byte [esp + 0xf4], 0xc
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x14]
mov byte [esp + 0xf0], 5
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0xc4]
mov eax, 0x10
cmp ecx, eax
mov ecx, dword [esp + 0xb0]
jae 0x442376
lea ecx, [esp + 0xb0]
cmp dword [esp + 0xa8], eax
mov eax, dword [esp + 0x94]
jae 0x44238d
lea eax, [esp + 0x94]
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 0x4a78ac
push esi
call dword [sym.imp.MSVCR71.dll_fopen]
add esp, 8
test eax, eax
mov dword [esi + 0x52c], eax
je 0x4423b7
mov byte [esi + 0x530], 1
lea ecx, [esp + 0xac]
mov byte [esp + 0xf0], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x90]
mov byte [esp + 0xf0], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xc8]
mov byte [esp + 0xf0], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x74]
mov dword [esp + 0xf0], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0xe8]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xe4]
pop esi
call fcn.00491e29
add esp, 0xf0
ret
push esi
mov esi, ecx
cmp byte [esi + 0x530], 1
jne 0x4425f1
mov eax, dword [esi + 0x52c]
push ebp
push edi
mov edi, dword [sym.imp.MSVCR71.dll_fseek]
push 2
push 0
push eax
call edi
mov ecx, dword [esi + 0x52c]
push ecx
call dword [sym.imp.MSVCR71.dll_ftell]
mov edx, dword [esi + 0x52c]
push 0
push 0
push edx
mov ebp, eax
call edi
mov eax, dword [esi + 0x104]
add esp, 0x1c
pop edi
cmp ebp, eax
pop ebp
jl 0x4425f1
mov eax, dword [esi + 0x108]
test eax, eax
jne 0x4425f3
mov eax, dword [esi + 0x52c]
push eax
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x4a78ac
push esi
call dword [sym.imp.MSVCR71.dll_fopen]
add esp, 8
test eax, eax
mov dword [esi + 0x52c], eax
je 0x4425f1
mov byte [esi + 0x530], 1
pop esi
ret
mov ecx, esi
pop esi
jmp 0x441ff0