Function at 0x5154a0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53687c
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x5c6150]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.Backup
push ecx
lea ecx, [ebp - 0xa0]
call fcn.00514290
mov dword [ebp - 4], 0
lea eax, [ebp - 0xa0]
cmp dword [ebp - 0x8c], 8
mov dword [ebp - 0xb0], 0
cmovae eax, dword [ebp - 0xa0]
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0
mov byte [ebp - 4], 1
test eax, eax
je 0x51552d
push 0
push eax
lea ecx, [ebp - 0xb0]
call fcn.005121f0
xor esi, esi
xor edi, edi
mov dword [ebp - 0xc0], esi
mov dword [ebp - 0xbc], edi
mov dword [ebp - 0xb8], esi
xor eax, eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov dword [ebp - 0xb4], eax
mov eax, 0x2aaaaaab
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0xac]
sub ecx, dword [ebp - 0xb0]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x51596a
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0xa4], edx
nop dword [eax]
test ecx, ecx
js 0x515920
cmp ecx, eax
jge 0x515920
mov edi, dword [ebp - 0xb0]
add edi, edx
cmp dword [edi + 0x14], 8
jb 0x5155c0
mov edi, dword [edi]
test edi, edi
je 0x515920
mov ecx, edi
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5155e1
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.00413520
mov byte [ebp - 4], 6
mov edx, dword [str.sgim_usr_v1_bak]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x515610
sub ecx, esi
lea eax, [ebp - 0x28]
sar ecx, 1
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
push edx
push 0
push dword [ebp - 0x18]
push eax
call fcn.0044a260
add esp, 0x14
cmp eax, 0xffffffff
jne 0x5158c1
mov edx, dword [str.sgim_usr_v2_bak]
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x515650
sub ecx, esi
lea eax, [ebp - 0x28]
sar ecx, 1
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
push edx
push 0
push dword [ebp - 0x18]
push eax
call fcn.0044a260
add esp, 0x14
cmp eax, 0xffffffff
jne 0x5158c1
mov edx, dword [str.sgim_usr_v2new_bak]
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x515690
sub ecx, esi
lea eax, [ebp - 0x28]
sar ecx, 1
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
push edx
push 0
push dword [ebp - 0x18]
push eax
call fcn.0044a260
add esp, 0x14
cmp eax, 0xffffffff
jne 0x5158c1
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov ecx, edi
mov byte [ebp - 4], 8
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5156e0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x58]
call fcn.00413520
lea ecx, [ebp - 0x58]
call fcn.00513e30
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x58]
call fcn.005140d0
cmp dword [ebp - 0x2c], 8
lea esi, [ebp - 0x40]
cmovae esi, dword [ebp - 0x40]
test esi, esi
cmove esi, edi
xor ecx, ecx
add esi, 2
movzx edx, word [esi]
cmp edx, 0x2d
je 0x515765
nop
test dx, dx
je 0x51588a
cmp ecx, 0x4e200
jge 0x515765
lea eax, [edx - 0x30]
cmp ax, 9
ja 0x51588a
add esi, 2
movzx eax, dx
lea ecx, [ecx + ecx*4]
lea ecx, [ecx - 0x18]
movzx edx, word [esi]
lea ecx, [eax + ecx*2]
cmp edx, 0x2d
jne 0x515730
cmp word [esi], 0
je 0x51588a
cmp ecx, 0x4e200
jge 0x51588a
lea ecx, [ebp - 0x40]
call fcn.004134c0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 6
call fcn.004134c0
push 0x2d
push edi
call fcn.004d9879
mov esi, eax
add esp, 8
test esi, esi
jne 0x5157ca
push ecx
push dword [0x557acc]
lea ecx, [ebp - 0x28]
call fcn.0044a300
cmp eax, 0xffffffff
je 0x515914
push edi
lea ecx, [ebp - 0x40]
call fcn.00413470
mov byte [ebp - 4], 0xb
jmp 0x5158fd
movzx eax, word [esi + 2]
add esi, 2
mov ecx, esi
mov dl, 1
test ax, ax
je 0x5157f9
nop word [eax + eax]
add eax, 0xffffffd0
cmp ax, 9
ja 0x5157f7
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x5157e0
jmp 0x5157f9
xor dl, dl
test dl, dl
jne 0x51580f
push edi
lea ecx, [ebp - 0x40]
call fcn.00413470
mov byte [ebp - 4], 0xc
jmp 0x5158fd
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
mov ecx, esi
cmovae eax, dword [ebp - 0x70]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x515846
test dx, dx
je 0x515842
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x515846
add eax, 4
add ecx, 4
test dx, dx
jne 0x515820
xor eax, eax
jmp 0x51584b
sbb eax, eax
or eax, 1
test eax, eax
jns 0x51587b
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0xc0]
call fcn.0044bff0
push esi
lea ecx, [ebp - 0x70]
call fcn.0041f230
push edi
lea ecx, [ebp - 0x88]
call fcn.0041f230
jmp 0x515914
push edi
lea ecx, [ebp - 0x40]
call fcn.00413470
mov byte [ebp - 4], 0xd
jmp 0x5158fd
lea ecx, [ebp - 0x40]
call fcn.004134c0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 6
call fcn.004134c0
push ecx
push dword [0x557acc]
lea ecx, [ebp - 0x28]
call fcn.0044a300
cmp eax, 0xffffffff
je 0x515914
push edi
lea ecx, [ebp - 0x40]
call fcn.00413470
mov byte [ebp - 4], 0xa
jmp 0x5158fd
mov ecx, edi
mov dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5158e0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x40]
call fcn.00413520
mov byte [ebp - 4], 7
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc0]
call fcn.0044b370
lea ecx, [ebp - 0x40]
call fcn.004134c0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.004134c0
mov ecx, dword [ebp - 0xac]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0xb0]
inc dword [ebp - 0xb4]
add dword [ebp - 0xa4], 0x18
imul ecx
mov ecx, dword [ebp - 0xb4]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0xa4]
cmp ecx, eax
jl 0x5155a0
mov edi, dword [ebp - 0xbc]
mov esi, dword [ebp - 0xc0]
cmp esi, edi
je 0x515a20
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x51597c
mov edx, dword [esi]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov ecx, edx
mov byte [ebp - 4], 0xe
lea eax, [ecx + 2]
mov dword [ebp - 0xa4], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5159a0
sub ecx, dword [ebp - 0xa4]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00413520
lea ecx, [ebp - 0x28]
call fcn.00513e30
mov byte [ebp - 4], 5
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x515a0d
test al, 0x10
jne 0x515a0d
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x80
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x28]
call fcn.004134c0
add esi, 0x18
cmp esi, edi
jne 0x515972
lea ecx, [ebp - 0x70]
call fcn.004134c0
lea ecx, [ebp - 0x88]
call fcn.004134c0
lea ecx, [ebp - 0xc0]
call fcn.0044c170
mov edi, dword [ebp - 0xac]
mov esi, dword [ebp - 0xb0]
cmp esi, edi
je 0x515a64
nop
mov ecx, esi
call fcn.004134c0
add esi, 0x18
cmp esi, edi
jne 0x515a50
mov esi, dword [ebp - 0xb0]
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xac], esi
call fcn.0044c170
lea ecx, [ebp - 0xa0]
call fcn.004134c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret