Function at 0x45ac70
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63395f
mov eax, dword fs:[0]
push eax
sub esp, 0x57c
mov eax, dword [0x6ce8d4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x21c]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
push 0x208
push 0
push eax
mov dword [ebp - 0x4c0], ebx
call fcn.005d7e20
push ebx
lea eax, [ebp - 0x21c]
push str._s.bak
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x21c]
push eax
push ebx
call fcn.005e448d
xor eax, eax
mov dword [ebp - 0x220], 0xf
add esp, 8
mov dword [ebp - 0x224], eax
test edi, edi
mov byte [ebp - 0x234], al
cmove edi, eax
mov dword [ebp - 0x4c4], edi
cmp byte [esi], al
jne 0x45ad21
xor ecx, ecx
jmp 0x45ad2f
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45ad26
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x234]
call fcn.00451010
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x37c]
mov byte [ebp - 4], 1
call fcn.005c0a70
lea ecx, [ebp - 0x4bc]
mov byte [ebp - 4], 2
call fcn.005ca340
lea ecx, [ebp - 0x2e8]
mov byte [ebp - 4], 3
call fcn.005cb900
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 4
call fcn.005cc0b0
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 5
xorps xmm0, xmm0
lea ecx, [ebp - 0x37c]
push eax
movlpd qword [ebp - 0x4d0], xmm0
call fcn.005c0c10
push 0x6d996c
lea ecx, [ebp - 0x2e8]
call fcn.005cbfd0
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x37c]
call fcn.005c1530
push eax
lea ecx, [ebp - 0x2e8]
mov byte [ebp - 4], 6
call fcn.005cc010
mov eax, dword [ebp - 0x238]
mov byte [ebp - 4], 5
cmp eax, 0x10
jb 0x45ae26
mov ecx, dword [ebp - 0x24c]
inc eax
cmp eax, 0x1000
jb 0x45ae1d
test cl, 0x1f
je 0x45adf9
call fcn.005e06e1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x45ae05
call fcn.005e06e1
sub ecx, eax
cmp ecx, 4
jae 0x45ae11
call fcn.005e06e1
cmp ecx, 0x23
jbe 0x45ae1b
call fcn.005e06e1
mov ecx, eax
push ecx
call fcn.0062ce30
add esp, 4
lea eax, [ebp - 0x34c]
push eax
lea ecx, [ebp - 0x2e8]
call fcn.005cbec0
lea eax, [ebp - 0x34c]
push eax
lea ecx, [ebp - 0x4bc]
call fcn.005cb500
lea ecx, [ebp - 0x37c]
call fcn.005c15e0
movzx eax, ax
lea ecx, [ebp - 0x4bc]
push eax
call fcn.005cb5a0
lea eax, [ebp - 0x2e8]
push eax
lea ecx, [ebp - 0x4bc]
call fcn.005caf60
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x4bc]
call fcn.005cab80
lea ecx, [ebp - 0x290]
mov edi, eax
call fcn.005cb7e0
mov ecx, eax
call fcn.005bdb60
mulsd xmm0, qword [0x63d2f0]
call fcn.005bda4f
mov ecx, edx
mov dword [ebp - 0x4d8], eax
mov dword [ebp - 0x4d4], ecx
test ecx, ecx
ja 0x45af2e
jb 0x45aec1
test eax, eax
jne 0x45af2e
lea ecx, [ebp - 0x290]
call fcn.005cc130
lea ecx, [ebp - 0x2e8]
call fcn.005cb9a0
lea ecx, [ebp - 0x4bc]
call fcn.005ca5e0
lea ecx, [ebp - 0x37c]
call fcn.005c0ae0
mov eax, dword [ebp - 0x220]
cmp eax, 0x10
jb 0x45af0b
inc eax
lea ecx, [ebp - 0x234]
push eax
push dword [ebp - 0x234]
call fcn.00451330
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005bd4a0
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x290]
call fcn.005cb7e0
mov ecx, eax
mov ebx, edx
mov eax, dword [0x684e18]
cdq
mov dword [ebp - 0x4c8], ecx
cmp ecx, eax
jne 0x45af76
cmp ebx, edx
jne 0x45af76
push 0
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x3a8]
call fcn.005bef80
push 0x6c39f4
lea eax, [ebp - 0x3a8]
push eax
call fcn.005d7454
push 1
push 0x40
push 0x20
push dword [ebp - 0x4c0]
lea ecx, [ebp - 0x588]
call fcn.00452fe0
mov eax, dword [ebp - 0x588]
mov byte [ebp - 4], 7
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x57c], 6
je 0x45afc2
push 0
lea ecx, [ebp - 0x3d4]
call fcn.005be8b0
push 0x6c3a54
lea eax, [ebp - 0x3d4]
push eax
call fcn.005d7454
mov eax, dword [ebp - 0x4cc]
mov esi, 8
mov dword [ebp - 0x4c0], eax
mov eax, dword [ebp - 0x4d0]
mov dword [ebp - 0x4cc], eax
nop
mov edx, dword [ebp - 0x4c8]
mov eax, ebx
mov ecx, edx
add edx, 0xffffffff
mov dword [ebp - 0x4c8], edx
adc ebx, 0xffffffff
test eax, eax
jl 0x45b08d
jg 0x45b008
test ecx, ecx
je 0x45b08d
mov eax, dword [edi]
mov eax, dword [eax + 4]
test byte [eax + edi + 0xc], 1
jne 0x45b08d
mov ecx, edi
call fcn.0045b490
push eax
lea ecx, [ebp - 0x588]
call fcn.0045b8f0
push dword [ebp - 0x4d4]
mov ecx, dword [ebp - 0x4cc]
mov eax, dword [ebp - 0x4c0]
add ecx, 1
push dword [ebp - 0x4d8]
adc eax, 0
mov dword [ebp - 0x4cc], ecx
push eax
push ecx
mov dword [ebp - 0x4c0], eax
call fcn.005bd7d0
test eax, eax
jne 0x45afe0
test edx, edx
jne 0x45afe0
mov eax, dword [ebp - 0x4c4]
test eax, eax
je 0x45afe0
cmp esi, 0x63
jg 0x45afe0
push esi
push edx
push 0x779
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
add esi, 2
jmp 0x45afe0
mov eax, dword [ebp - 0x588]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x588]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x58c], eax
cmp dword [ebp - 0x538], 0
mov byte [ebp - 4], 8
mov dword [ebp - method.std::basic_filebuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
je 0x45b0fb
mov eax, dword [ebp - 0x578]
lea ecx, [ebp - 0x548]
cmp dword [eax], ecx
jne 0x45b0fb
mov edx, dword [ebp - 0x530]
mov ecx, dword [ebp - 0x534]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0x568]
mov dword [eax], ecx
mov eax, dword [ebp - 0x558]
mov dword [eax], edx
cmp byte [ebp - 0x53c], 0
je 0x45b10f
lea ecx, [ebp - 0x584]
call fcn.00455cf0
mov esi, dword [ebp - 0x550]
mov dword [ebp - method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
test esi, esi
je 0x45b14a
mov ecx, dword [esi + 4]
mov byte [ebp - 4], 9
test ecx, ecx
je 0x45b13f
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
test ecx, ecx
je 0x45b13f
mov eax, dword [ecx]
push 1
call dword [eax]
push 8
push esi
call fcn.005bd21c
add esp, 8
mov eax, dword [ebp - 0x588]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x588]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x58c], eax
lea eax, [ebp - 0x520]
mov byte [ebp - 4], 0xa
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004a5b97
add esp, 4
lea ecx, [ebp - 0x290]
call fcn.005cc130
lea ecx, [ebp - 0x2e8]
call fcn.005cb9a0
lea ecx, [ebp - 0x4bc]
call fcn.005ca5e0
lea ecx, [ebp - 0x37c]
call fcn.005c0ae0
mov eax, dword [ebp - 0x220]
cmp eax, 0x10
jb 0x45af0b
mov ecx, dword [ebp - 0x234]
inc eax
cmp eax, 0x1000
jb 0x45b205
test cl, 0x1f
je 0x45b1e1
call fcn.005e06e1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x45b1ed
call fcn.005e06e1
sub ecx, eax
cmp ecx, 4
jae 0x45b1f9
call fcn.005e06e1
cmp ecx, 0x23
jbe 0x45b203
call fcn.005e06e1
mov ecx, eax
push ecx
call fcn.0062ce30
add esp, 4
jmp 0x45af0b