Function at 0x426400
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x502f80
push eax
mov dword fs:[0], esp
sub esp, 0x1f0
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x20], ebx
jne 0x426446
xor al, al
mov ecx, dword [esp + 0x1fc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push ebx
call dword [sym.imp.MSVCR80.dll__time64]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
add esp, 4
push eax
mov dword [esp + 0x18], edx
call fcn.0042f210
mov ecx, dword [edi + 8]
mov esi, eax
add esp, 4
cmp ecx, dword [esi + 0xc]
je 0x426624
mov edx, dword [ebp + 8]
push 1
push ebx
push edx
mov ecx, edi
mov dword [edi + 0x148], ebx
call fcn.00427010
mov eax, dword [esi + 0xc]
mov dword [edi + 8], eax
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x4264a1
push eax
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
mov dword [edi + 4], ebx
push 1
push 3
lea ecx, [esp + 0x178]
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 ecx, [esp + 0x10]
push 2
push ecx
mov dword [esp + 0x20c], ebx
call dword [sym.imp.MSVCP80.dll_struct_std::_Smanip_int____cdecl_std::setw_int_]
mov edx, dword [esi + 0x14]
add esp, 8
push eax
push ecx
push 0x529364
add edx, 0x76c
push edx
push 0x529348
lea eax, [edi + 0xc]
push eax
lea ecx, [esp + 0x190]
push ecx
call 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__]
add esp, 8
push eax
call fcn.0042d4b0
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_]
push eax
call fcn.0042d4b0
add esp, 0xc
push eax
call fcn.0042d470
mov ebx, eax
mov edx, dword [ebx]
mov eax, dword [edx + 4]
add eax, ebx
mov byte [eax + 0x30], 0x30
lea eax, [esp + 0x20]
push 2
push eax
call dword [sym.imp.MSVCP80.dll_struct_std::_Smanip_int____cdecl_std::setw_int_]
add esp, 0x10
push eax
push ecx
mov ecx, dword [esi + 0x10]
add ecx, 1
push 0x529364
push ecx
mov ecx, ebx
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_]
push eax
call fcn.0042d4b0
add esp, 0xc
push eax
call fcn.0042d470
mov edx, dword [eax]
mov ecx, dword [edx + 4]
add ecx, eax
add esp, 8
mov byte [ecx + 0x30], 0x30
mov ecx, dword [esi + 0xc]
push 0x52935c
push ecx
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_]
push eax
call fcn.0042d4b0
add esp, 8
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x174]
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
jb 0x42659b
mov eax, dword [eax + 4]
jmp 0x42659e
add eax, 4
push 0x529368
push eax
call dword [sym.imp.MSVCR80.dll_fopen]
add esp, 8
lea ecx, [esp + 0x28]
mov dword [edi + 4], 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_]
mov eax, dword [edi + 4]
test eax, eax
je 0x4265cf
push 2
push 0
push eax
call dword [sym.imp.MSVCR80.dll_fseek]
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
mov ecx, edi
call fcn.00427010
mov byte [esp + 0xf], al
xor ebx, ebx
jmp 0x4265f0
mov eax, dword [edi + 0x150]
add eax, ebx
push eax
mov ecx, edi
call fcn.00426ce0
add ebx, 1
cmp ebx, 7
jb 0x4265f0
lea ecx, [esp + 0x170]
mov dword [esp + 0x204], 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_]
xor ebx, ebx
jmp 0x42663b
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
mov ecx, edi
call fcn.00427010
mov byte [esp + 0xf], al
mov ecx, dword [ebp + 0xc]
add dword [edi + 0x148], ecx
cmp byte [esp + 0xf], 0
mov eax, dword [edi + 0x148]
je 0x42699e
cmp eax, dword [edi + 0x14c]
jb 0x42699e
mov eax, dword [edi + 4]
cmp eax, ebx
mov dword [edi + 0x148], ebx
je 0x42667b
push eax
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
mov dword [edi + 4], ebx
push 1
push 3
lea ecx, [esp + 0xf0]
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 + 0x68]
mov dword [esp + 0x20c], 1
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 edx, [esp + 0x18]
push 2
push edx
mov byte [esp + 0x20c], 2
call dword [sym.imp.MSVCP80.dll_struct_std::_Smanip_int____cdecl_std::setw_int_]
mov ecx, dword [esi + 0x14]
add esp, 8
push 0x529364
add ecx, 0x76c
push ecx
push 0x529348
push ecx
mov dword [esp + 0x20], eax
lea eax, [edi + 0xc]
push str._back
push eax
lea edx, [esp + 0x108]
push edx
call 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__]
add esp, 8
push eax
call fcn.0042d4b0
add esp, 0xc
push eax
call fcn.0042d4b0
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_]
push eax
call fcn.0042d4b0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x426720
mov eax, dword [ebx]
mov eax, dword [eax + 4]
add eax, ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 4]
push edx
push eax
mov eax, dword [ecx]
call eax
mov ecx, dword [ebx]
mov eax, dword [ecx + 4]
lea edx, [esp + 0x28]
add eax, ebx
push 2
push edx
mov byte [eax + 0x30], 0x30
call dword [sym.imp.MSVCP80.dll_struct_std::_Smanip_int____cdecl_std::setw_int_]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x10]
add esp, 0x10
push 0x529364
add eax, 1
push eax
mov ecx, ebx
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_]
push eax
call fcn.0042d4b0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x426773
xor ecx, ecx
jmp 0x42677a
mov ecx, dword [ebx]
mov ecx, dword [ecx + 4]
add ecx, ebx
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push ecx
call eax
mov ecx, dword [ebx]
mov eax, dword [ecx + 4]
add esp, 8
add eax, ebx
mov byte [eax + 0x30], 0x30
mov edx, dword [esi + 0xc]
push 0x52935c
push edx
mov ecx, ebx
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_]
push eax
call fcn.0042d4b0
lea eax, [esp + 0x28]
push 2
push eax
call dword [sym.imp.MSVCP80.dll_struct_std::_Smanip_int____cdecl_std::setw_int_]
mov ecx, dword [esi + 0x14]
add esp, 0x10
push 0x529364
add ecx, 0x76c
push ecx
mov dword [esp + 0x18], eax
push 0x529348
lea eax, [edi + 0xc]
push eax
lea edx, [esp + 0x78]
push edx
call 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__]
add esp, 8
push eax
call fcn.0042d4b0
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_]
push eax
call fcn.0042d4b0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x42680d
mov eax, dword [ebx]
mov eax, dword [eax + 4]
add eax, ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 4]
push edx
push eax
mov eax, dword [ecx]
call eax
mov ecx, dword [ebx]
mov eax, dword [ecx + 4]
lea edx, [esp + 0x20]
add eax, ebx
push 2
push edx
mov byte [eax + 0x30], 0x30
call dword [sym.imp.MSVCP80.dll_struct_std::_Smanip_int____cdecl_std::setw_int_]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x10]
add esp, 0x10
push 0x529364
add eax, 1
push eax
mov ecx, ebx
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_]
push eax
call fcn.0042d4b0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x426863
mov ecx, dword [ebx]
mov eax, dword [ecx + 4]
add eax, ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 4]
push edx
push eax
mov eax, dword [ecx]
call eax
mov ecx, dword [ebx]
mov eax, dword [ecx + 4]
add esp, 8
add eax, ebx
mov byte [eax + 0x30], 0x30
mov edx, dword [esi + 0xc]
push 0x52935c
push edx
mov ecx, ebx
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_]
push eax
call fcn.0042d4b0
add esp, 8
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0xec]
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 ebx, 0x10
cmp dword [eax + 0x18], ebx
jb 0x4268b9
mov eax, dword [eax + 4]
jmp 0x4268bc
add eax, 4
push eax
call dword [sym.imp.MSVCR80.dll__unlink]
add esp, 4
lea ecx, [esp + 0x28]
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 + 0x44]
push ecx
lea ecx, [esp + 0xec]
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 edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x64]
mov byte [esp + 0x208], 3
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 [esi + 0x18], ebx
jb 0x426905
mov esi, dword [esi + 4]
jmp 0x426908
add esi, 4
cmp dword [eax + 0x18], ebx
jb 0x426912
mov eax, dword [eax + 4]
jmp 0x426915
add eax, 4
push esi
push eax
call dword [sym.imp.MSVCR80.dll_rename]
add esp, 8
lea ecx, [esp + 0x28]
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 + 0x44]
mov byte [esp + 0x204], 2
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 eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x64]
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], ebx
jb 0x426955
mov eax, dword [eax + 4]
jmp 0x426958
add eax, 4
push 0x529368
push eax
call dword [sym.imp.MSVCR80.dll_fopen]
add esp, 8
lea ecx, [esp + 0x44]
mov dword [edi + 4], 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 + 0x60]
mov byte [esp + 0x204], 1
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 + 0xe8]
mov dword [esp + 0x204], 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 ecx, dword [esp + 0x1fc]
mov al, byte [esp + 0xf]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc