Function at 0x601dc0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x712602
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3bc
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
mov al, byte [esi + 0x1c8]
test al, al
je 0x602197
call fcn.006d8f27
mov ecx, dword [eax + 4]
call fcn.006c250e
add esi, 0x1bc
mov ecx, 0x848f18
push esi
mov dword [ebp - 4], 0
call fcn.0060d8a0
mov eax, dword [0x832170]
mov edi, 0x71eb04
lea esi, [eax + 0x230]
mov eax, dword [eax + 0x234]
test eax, eax
je 0x601e38
mov edi, eax
lea eax, [ebp - 0x288]
push 0x104
push eax
call fcn.00662146
push edi
mov byte [ebp - 0x185], 0
call fcn.006620c0
add esp, 0xc
test eax, eax
je 0x601e79
lea ecx, [ebp - 0x100]
call fcn.005d0510
lea ecx, [ebp - 0x100]
push 0x7c47e8
push ecx
call fcn.006609b5
mov edx, esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0063aa80
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x40]
push edx
mov byte [ebp - 4], 2
call fcn.0040ca10
mov byte [ebp - 0x30], 0
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 4
call fcn.00429010
lea ecx, [ebp - 0x7c]
call fcn.00426680
mov esi, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
push 0
push 0
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 6
mov dword [ebp - 0xc8], esi
call fcn.0042f680
mov eax, dword [ebp - 0x28]
mov bl, 7
test eax, eax
mov byte [ebp - 4], bl
jne 0x601ee1
mov eax, 0x71eb04
mov ecx, dword [ebp - 0x78]
test ecx, ecx
jne 0x601f1a
push 0x22
push eax
call fcn.00674e1b
add esp, 8
test eax, eax
je 0x601f1a
push 1
push eax
lea ecx, [ebp - 0xc8]
call fcn.0042f680
lea ecx, [ebp - 0xc8]
call fcn.0042f760
lea eax, [ebp - 0xc8]
test eax, eax
jne 0x601f37
lea ecx, [ebp - 0x68]
call fcn.006609ef
lea ecx, [ebp - 0x68]
push 0x787900
push ecx
mov dword [ebp - 0x68], vtable.t_streambuf_write_failure.0
call fcn.006609b5
lea edx, [ebp - 0xc8]
push 3
push edx
lea ecx, [ebp - 0x184]
call fcn.00494db0
lea eax, [ebp - 0x184]
mov ecx, 0x848f18
push eax
mov byte [ebp - 4], 8
call fcn.0060db70
test al, al
jne 0x601f81
lea ecx, [ebp - 0x74]
call fcn.006609ef
lea ecx, [ebp - 0x74]
push 0x787900
push ecx
mov dword [ebp - 0x74], vtable.t_streambuf_write_failure.0
call fcn.006609b5
lea ecx, [ebp - 0x184]
mov byte [ebp - 4], bl
call fcn.004951e0
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x602071
push eax
call fcn.006612ee
add esp, 4
test eax, eax
jne 0x602071
push 2
push eax
lea ecx, [ebp - 0xc8]
call fcn.0042f680
mov eax, dword [0x83e28c]
test eax, eax
jne 0x601fc7
mov eax, 0x71eb04
lea ecx, [ebp - 0x3c8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x601ff6
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [0x83e28c]
test eax, eax
jne 0x601fef
mov eax, 0x71eb04
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x83e28c]
mov ecx, 0x71eb04
test eax, eax
je 0x602006
mov ecx, eax
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x602012
mov eax, 0x71eb04
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x60208e
mov byte [ebp - 0x30], 1
mov dword [ebp - 0xc8], esi
mov al, byte [ebp - 0x80]
mov byte [ebp - 4], 0xc
test al, al
je 0x60203e
lea ecx, [ebp - 0xc8]
call fcn.0042f5e0
mov ecx, dword [ebp - 0x84]
test ecx, ecx
je 0x60204f
push 1
call fcn.0042f100
lea ecx, [ebp - 0x7c]
call fcn.004266d0
lea ecx, [ebp - 0x94]
mov dword [ebp - 0xc8], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004266d0
jmp 0x60213b
lea ecx, [ebp - 0x5c]
call fcn.006609ef
lea edx, [ebp - 0x5c]
push 0x787900
push edx
mov dword [ebp - 0x5c], vtable.t_streambuf_write_failure.0
call fcn.006609b5
mov dl, byte [ebp - 0x11]
push 0
lea ecx, [ebp - 0x50]
mov byte [ebp - 0x50], dl
call fcn.00407e50
mov edi, 0x81e44c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x81e44c
lea ecx, [ebp - 0x50]
call fcn.00415530
lea eax, [ebp - 0x1c]
mov bl, 9
push eax
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], bl
mov dword [ebp - 0x1c], 0x81e44c
call fcn.00660a1c
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xa
push ecx
lea ecx, [ebp - 0xd8]
call fcn.0040ca10
lea edx, [ebp - 0xe4]
push 0x788fc8
push edx
mov dword [ebp - 0xe4], vtable.std::runtime_error.0
mov byte [ebp - 4], bl
call fcn.006609b5
mov al, byte [0x832578]
test al, al
jne 0x60211a
mov ecx, 0x832568
call fcn.005c0bd0
mov eax, dword [0x83256c]
test eax, eax
jne 0x602128
mov eax, 0x71eb04
mov ecx, dword [ebp - 0x18]
push 0x10
push 0
push eax
call fcn.006c0cf4
mov eax, 0x60213b
ret
mov al, byte [ebp - 0x30]
mov dword [ebp - 4], 2
test al, al
jne 0x60215c
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x602155
mov eax, 0x71eb04
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
lea ecx, [ebp - 0x40]
call fcn.00407e50
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00407e50
lea eax, [ebp - 0x288]
push eax
call fcn.006620c0
add esp, 4
mov dword [ebp - 4], 0xffffffff
call fcn.006d8f27
mov ecx, dword [eax + 4]
call fcn.006c2523
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret