Function at 0x45a530
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6330ff
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.005d7990
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.005e3e41
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 0x45a5e1
xor ecx, ecx
jmp 0x45a5ef
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45a5e6
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x234]
call fcn.00451070
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x37c]
mov byte [ebp - 4], 1
call fcn.005c04c0
lea ecx, [ebp - 0x4bc]
mov byte [ebp - 4], 2
call fcn.005c9ed0
lea ecx, [ebp - 0x2e8]
mov byte [ebp - 4], 3
call fcn.005cb490
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 4
call fcn.005cbc40
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.005c0730
push 0x6d996c
lea ecx, [ebp - 0x2e8]
call fcn.005cbb60
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x37c]
call fcn.005c1050
push eax
lea ecx, [ebp - 0x2e8]
mov byte [ebp - 4], 6
call fcn.005cbba0
mov eax, dword [ebp - 0x238]
mov byte [ebp - 4], 5
cmp eax, 0x10
jb 0x45a6e6
mov ecx, dword [ebp - 0x24c]
inc eax
cmp eax, 0x1000
jb 0x45a6dd
test cl, 0x1f
je 0x45a6b9
call fcn.005e0271
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x45a6c5
call fcn.005e0271
sub ecx, eax
cmp ecx, 4
jae 0x45a6d1
call fcn.005e0271
cmp ecx, 0x23
jbe 0x45a6db
call fcn.005e0271
mov ecx, eax
push ecx
call fcn.005bca10
add esp, 4
lea eax, [ebp - 0x34c]
push eax
lea ecx, [ebp - 0x2e8]
call fcn.005cba50
lea eax, [ebp - 0x34c]
push eax
lea ecx, [ebp - 0x4bc]
call fcn.005cb090
lea ecx, [ebp - 0x37c]
call fcn.005c1100
movzx eax, ax
lea ecx, [ebp - 0x4bc]
push eax
call fcn.005cb130
lea eax, [ebp - 0x2e8]
push eax
lea ecx, [ebp - 0x4bc]
call fcn.005caaf0
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x4bc]
call fcn.005ca710
lea ecx, [ebp - 0x290]
mov edi, eax
call fcn.005cb370
mov ecx, eax
call fcn.005bd5e0
mulsd xmm0, qword [0x63d2d0]
call fcn.005bd4cf
mov ecx, edx
mov dword [ebp - 0x4d8], eax
mov dword [ebp - 0x4d4], ecx
test ecx, ecx
ja 0x45a7ee
jb 0x45a781
test eax, eax
jne 0x45a7ee
lea ecx, [ebp - 0x290]
call fcn.005cbcc0
lea ecx, [ebp - 0x2e8]
call fcn.005cb530
lea ecx, [ebp - 0x4bc]
call fcn.005ca170
lea ecx, [ebp - 0x37c]
call fcn.005c0600
mov eax, dword [ebp - 0x220]
cmp eax, 0x10
jb 0x45a7cb
inc eax
lea ecx, [ebp - 0x234]
push eax
push dword [ebp - 0x234]
call fcn.00451390
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.005bcf27
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x290]
call fcn.005cb370
mov ecx, eax
mov ebx, edx
mov eax, dword [0x684df8]
cdq
mov dword [ebp - 0x4c8], ecx
cmp ecx, eax
jne 0x45a836
cmp ebx, edx
jne 0x45a836
push 0
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x3a8]
call fcn.005be9d0
push 0x6c39ac
lea eax, [ebp - 0x3a8]
push eax
call fcn.005d6fc4
push 1
push 0x40
push 0x20
push dword [ebp - 0x4c0]
lea ecx, [ebp - 0x588]
call fcn.00452aa0
mov eax, dword [ebp - 0x588]
mov byte [ebp - 4], 7
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x57c], 6
je 0x45a882
push 0
lea ecx, [ebp - 0x3d4]
call fcn.005be300
push 0x6c3a0c
lea eax, [ebp - 0x3d4]
push eax
call fcn.005d6fc4
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 0x45a94d
jg 0x45a8c8
test ecx, ecx
je 0x45a94d
mov eax, dword [edi]
mov eax, dword [eax + 4]
test byte [eax + edi + 0xc], 1
jne 0x45a94d
mov ecx, edi
call fcn.0045acf0
push eax
lea ecx, [ebp - 0x588]
call fcn.0045b150
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.005bd250
test eax, eax
jne 0x45a8a0
test edx, edx
jne 0x45a8a0
mov eax, dword [ebp - 0x4c4]
test eax, eax
je 0x45a8a0
cmp esi, 0x63
jg 0x45a8a0
push esi
push edx
push 0x779
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
add esi, 2
jmp 0x45a8a0
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 0x45a9bb
mov eax, dword [ebp - 0x578]
lea ecx, [ebp - 0x548]
cmp dword [eax], ecx
jne 0x45a9bb
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 0x45a9cf
lea ecx, [ebp - 0x584]
call fcn.004557b0
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 0x45aa0a
mov ecx, dword [esi + 4]
mov byte [ebp - 4], 9
test ecx, ecx
je 0x45a9ff
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
test ecx, ecx
je 0x45a9ff
mov eax, dword [ecx]
push 1
call dword [eax]
push 8
push esi
call fcn.005bcca3
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.004a55d6
add esp, 4
lea ecx, [ebp - 0x290]
call fcn.005cbcc0
lea ecx, [ebp - 0x2e8]
call fcn.005cb530
lea ecx, [ebp - 0x4bc]
call fcn.005ca170
lea ecx, [ebp - 0x37c]
call fcn.005c0600
mov eax, dword [ebp - 0x220]
cmp eax, 0x10
jb 0x45a7cb
mov ecx, dword [ebp - 0x234]
inc eax
cmp eax, 0x1000
jb 0x45aac5
test cl, 0x1f
je 0x45aaa1
call fcn.005e0271
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x45aaad
call fcn.005e0271
sub ecx, eax
cmp ecx, 4
jae 0x45aab9
call fcn.005e0271
cmp ecx, 0x23
jbe 0x45aac3
call fcn.005e0271
mov ecx, eax
push ecx
call fcn.005bca10
add esp, 4
jmp 0x45a7cb