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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b7af8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x63a404]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x34], ebx
mov ecx, 0x647bb8
call fcn.00544c60
mov edi, eax
mov dword [ebp - 0x4c], edi
test edi, edi
je 0x550476
xor esi, esi
mov ecx, edi
push 0x644988
mov dword [ebp - 0x38], esi
call fcn.00545810
cmp dword [0x647bb4], esi
jle 0x54fea6
push 0x647bb0
push 0x6449a0
call fcn.00544d50
mov esi, eax
mov dword [ebp - 0x38], esi
jmp 0x54febf
cmp dword [ebx], esi
je 0x54fec9
cmp dword [ebx + 4], esi
jbe 0x54fec9
push ebx
push 0x6449a0
call fcn.00544d50
mov esi, eax
mov dword [ebp - 0x38], eax
add esp, 8
test esi, esi
je 0x54fed5
push esi
jmp 0x54fece
push 0x6449b0
mov ecx, edi
call fcn.00545810
test byte [0x647b28], 2
je 0x54ffc4
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x20]
push eax
call esi
movzx ebx, word [ebp - 0x20]
lea eax, [ebp - 0x20]
push eax
call esi
movzx edi, word [ebp - 0x1e]
lea eax, [ebp - 0x20]
push eax
call esi
movzx esi, word [ebp - 0x1a]
push 0x1e
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], 0xe
call fcn.0056ea97
mov ecx, dword [ebp - 0x28]
add esp, 4
inc ecx
mov dword [ebp - 0x2c], eax
push 0xffffffffffffffff
push str.___4d__2d__2d_
push ecx
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00584f75
mov ecx, dword [ebp - 0x28]
xor edx, edx
add esp, 0x14
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x28], ecx
push esi
push edi
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], edx
push ebx
push eax
call fcn.00544d50
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
add esp, 0x10
test eax, eax
je 0x54ff82
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebp - 0x2c], 0
mov edi, dword [ebp - 0x4c]
mov ecx, edi
push esi
mov dword [ebp - 0x28], 0
call fcn.00545810
test esi, esi
je 0x54ffc1
mov eax, dword [esi]
test eax, eax
je 0x54ffaf
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0056ea89
add esp, 8
mov ebx, dword [ebp - 0x34]
push 0xa
mov dword [ebp - 0x30], 0
mov esi, 4
call fcn.0056ea97
add esp, 4
mov dword [ebp - 0x2c], eax
push 0xffffffffffffffff
push str..log
push 5
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00584f75
xor ecx, ecx
add esp, 0x14
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 1
push eax
mov ecx, edi
call fcn.00545810
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x550028
push 2
push eax
call fcn.0056ea89
add esp, 8
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x55003c
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebx + 8], 0
mov dl, 1
mov ecx, edi
call fcn.0054b800
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x55044d
push eax
lea ecx, [ebp - 0x18]
call fcn.005448d0
mov dword [ebp - 4], 2
mov esi, 5
push 0xc
mov dword [ebp - 0x30], 0
call fcn.0056ea97
add esp, 4
mov edi, eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], edi
push 0xffffffffffffffff
push 0x626284
push 6
push edi
push eax
call fcn.00584f75
xor ecx, ecx
add esp, 0x14
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x18]
call fcn.00545810
mov byte [ebp - 4], 2
test edi, edi
je 0x5500c1
push 2
push edi
call fcn.0056ea89
add esp, 8
push ecx
lea edx, [ebp - 0x18]
mov ecx, 0x647bb8
call fcn.005486b0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x550207
mov ecx, dword [ebx + 4]
cmp ecx, 0xb
jbe 0x550207
test ecx, ecx
je 0x550101
push 0x547350
push 4
push ecx
push dword [ebx]
call fcn.005843d0
mov ecx, dword [ebx + 4]
add esp, 0x10
xor edx, edx
lea eax, [ecx - 0xb]
mov dword [ebp - 0x34], edx
test eax, eax
je 0x550207
xor esi, esi
cmp edx, ecx
jae 0x550120
mov eax, dword [ebx]
test eax, eax
je 0x550120
mov esi, dword [eax + edx*4]
test esi, esi
je 0x5501f8
push 0x647bb8
lea ecx, [ebp - 0x48]
call fcn.005448d0
push 0x644988
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.00545810
push esi
lea ecx, [ebp - 0x48]
call fcn.00545810
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.005448d0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.00545f90
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 2
push esi
mov edi, eax
call fcn.0056ea89
add esp, 8
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2c]
cmp edi, 0xffffffff
setne byte [ebp - 0x21]
test eax, eax
je 0x5501a1
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebp - 0x2c], 0
cmp byte [ebp - 0x21], 0
mov dword [ebp - 0x28], 0
je 0x5501ce
lea ecx, [ebp - 0x48]
call fcn.00545f90
mov esi, eax
test esi, esi
je 0x5501ce
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 2
push esi
call fcn.0056ea89
add esp, 8
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x5501eb
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebp - 0x48], 0
mov ecx, dword [ebx + 4]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x44], 0
inc edx
lea eax, [ecx - 0xb]
mov dword [ebp - 0x34], edx
cmp edx, eax
jb 0x550111
mov eax, dword [ebx + 4]
xor edi, edi
test eax, eax
je 0x550252
cmp edi, eax
jae 0x55024a
mov esi, dword [ebx]
test esi, esi
je 0x55024a
mov esi, dword [esi + edi*4]
test esi, esi
je 0x55024a
mov eax, dword [esi]
test eax, eax
je 0x550238
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0056ea89
add esp, 8
mov eax, dword [ebx + 4]
inc edi
cmp edi, eax
jb 0x550214
mov eax, dword [ebx]
test eax, eax
je 0x550269
push 4
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebx], 0
push 8
push ebx
mov dword [ebx + 4], 0
call fcn.0056ea89
mov esi, dword [0x647bbc]
xor ecx, ecx
mov edx, 2
mov dword [ebp - 0x3c], esi
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056ea97
mov edx, eax
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x40], edx
xor ecx, ecx
mov word [edx + esi*2], ax
test esi, esi
je 0x5502ce
nop
cmp ecx, dword [0x647bbc]
jb 0x5502bc
xor eax, eax
jmp 0x5502c5
mov eax, dword [0x647bb8]
movzx eax, word [eax + ecx*2]
mov word [edx + ecx*2], ax
inc ecx
cmp ecx, esi
jb 0x5502b0
push 0x644988
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.00545810
mov ebx, dword [ebp - 0x38]
lea ecx, [ebp - 0x40]
push ebx
call fcn.00545810
push 0xa
mov dword [ebp - 0x30], 0
mov esi, 4
call fcn.0056ea97
add esp, 4
mov edi, eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], edi
push 0xffffffffffffffff
push str..log
push 5
push edi
push eax
call fcn.00584f75
xor ecx, ecx
add esp, 0x14
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x40]
call fcn.00545810
mov byte [ebp - 4], 6
test edi, edi
je 0x550349
push 2
push edi
call fcn.0056ea89
add esp, 8
mov esi, dword [ebp - 0x3c]
xor ecx, ecx
mov edx, 2
mov dword [ebp - 0x28], esi
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056ea97
xor ecx, ecx
mov dword [ebp - 0x2c], eax
add esp, 4
xor edx, edx
mov word [eax + esi*2], cx
test esi, esi
je 0x550398
mov edi, dword [ebp - 0x40]
mov ecx, eax
sub edi, eax
cmp edx, esi
jb 0x550389
xor eax, eax
jmp 0x55038d
movzx eax, word [edi + ecx]
mov word [ecx], ax
inc edx
add ecx, 2
cmp edx, esi
jb 0x550389
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call fcn.00545f90
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 2
push esi
mov edi, eax
call fcn.0056ea89
add esp, 8
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x2c]
cmp edi, 0xffffffff
setne byte [ebp - 0x21]
test eax, eax
je 0x5503d7
push 2
push eax
call fcn.0056ea89
add esp, 8
cmp byte [ebp - 0x21], 0
je 0x5503fd
lea ecx, [ebp - 0x40]
call fcn.00545f90
mov esi, eax
test esi, esi
je 0x5503fd
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 2
push esi
call fcn.0056ea89
add esp, 8
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x55040f
push 2
push eax
call fcn.0056ea89
add esp, 8
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x550421
push 2
push eax
call fcn.0056ea89
add esp, 8
mov eax, dword [ebx]
test eax, eax
je 0x550438
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebx], 0
push 8
push ebx
mov dword [ebx + 4], 0
call fcn.0056ea89
mov edi, dword [ebp - 0x4c]
add esp, 8
mov eax, dword [edi]
test eax, eax
je 0x550464
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [edi], 0
push 8
push edi
mov dword [edi + 4], 0
call fcn.0056ea89
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056e5b3
mov esp, ebp
pop ebp
ret