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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b8918
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x63b404]
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, 0x648cd8
call fcn.00545a50
mov edi, eax
mov dword [ebp - 0x4c], edi
test edi, edi
je 0x551266
xor esi, esi
mov ecx, edi
push 0x645aa8
mov dword [ebp - 0x38], esi
call fcn.00546600
cmp dword [0x648cd4], esi
jle 0x550c96
push 0x648cd0
push 0x645ac0
call fcn.00545b40
mov esi, eax
mov dword [ebp - 0x38], esi
jmp 0x550caf
cmp dword [ebx], esi
je 0x550cb9
cmp dword [ebx + 4], esi
jbe 0x550cb9
push ebx
push 0x645ac0
call fcn.00545b40
mov esi, eax
mov dword [ebp - 0x38], eax
add esp, 8
test esi, esi
je 0x550cc5
push esi
jmp 0x550cbe
push 0x645ad0
mov ecx, edi
call fcn.00546600
test byte [0x648c48], 2
je 0x550db4
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.0056f8a6
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.00585d85
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.00545b40
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
add esp, 0x10
test eax, eax
je 0x550d72
push 2
push eax
call fcn.0056f898
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.00546600
test esi, esi
je 0x550db1
mov eax, dword [esi]
test eax, eax
je 0x550d9f
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0056f898
add esp, 8
mov ebx, dword [ebp - 0x34]
push 0xa
mov dword [ebp - 0x30], 0
mov esi, 4
call fcn.0056f8a6
add esp, 4
mov dword [ebp - 0x2c], eax
push 0xffffffffffffffff
push 0x627340
push 5
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00585d85
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.00546600
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x550e18
push 2
push eax
call fcn.0056f898
add esp, 8
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x550e2c
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebx + 8], 0
mov dl, 1
mov ecx, edi
call fcn.0054c5f0
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x55123d
push eax
lea ecx, [ebp - 0x18]
call fcn.005456c0
mov dword [ebp - 4], 2
mov esi, 5
push 0xc
mov dword [ebp - 0x30], 0
call fcn.0056f8a6
add esp, 4
mov edi, eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], edi
push 0xffffffffffffffff
push str..log
push 6
push edi
push eax
call fcn.00585d85
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.00546600
mov byte [ebp - 4], 2
test edi, edi
je 0x550eb1
push 2
push edi
call fcn.0056f898
add esp, 8
push ecx
lea edx, [ebp - 0x18]
mov ecx, 0x648cd8
call fcn.005494a0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x550ff7
mov ecx, dword [ebx + 4]
cmp ecx, 0xb
jbe 0x550ff7
test ecx, ecx
je 0x550ef1
push 0x548140
push 4
push ecx
push dword [ebx]
call fcn.005851e0
mov ecx, dword [ebx + 4]
add esp, 0x10
xor edx, edx
lea eax, [ecx - 0xb]
mov dword [ebp - 0x34], edx
test eax, eax
je 0x550ff7
xor esi, esi
cmp edx, ecx
jae 0x550f10
mov eax, dword [ebx]
test eax, eax
je 0x550f10
mov esi, dword [eax + edx*4]
test esi, esi
je 0x550fe8
push 0x648cd8
lea ecx, [ebp - 0x48]
call fcn.005456c0
push 0x645aa8
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.00546600
push esi
lea ecx, [ebp - 0x48]
call fcn.00546600
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.005456c0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.00546d80
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 2
push esi
mov edi, eax
call fcn.0056f898
add esp, 8
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2c]
cmp edi, 0xffffffff
setne byte [ebp - 0x21]
test eax, eax
je 0x550f91
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [ebp - 0x2c], 0
cmp byte [ebp - 0x21], 0
mov dword [ebp - 0x28], 0
je 0x550fbe
lea ecx, [ebp - 0x48]
call fcn.00546d80
mov esi, eax
test esi, esi
je 0x550fbe
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 2
push esi
call fcn.0056f898
add esp, 8
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x550fdb
push 2
push eax
call fcn.0056f898
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 0x550f01
mov eax, dword [ebx + 4]
xor edi, edi
test eax, eax
je 0x551042
cmp edi, eax
jae 0x55103a
mov esi, dword [ebx]
test esi, esi
je 0x55103a
mov esi, dword [esi + edi*4]
test esi, esi
je 0x55103a
mov eax, dword [esi]
test eax, eax
je 0x551028
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0056f898
add esp, 8
mov eax, dword [ebx + 4]
inc edi
cmp edi, eax
jb 0x551004
mov eax, dword [ebx]
test eax, eax
je 0x551059
push 4
push eax
call fcn.0056f898
add esp, 8
mov dword [ebx], 0
push 8
push ebx
mov dword [ebx + 4], 0
call fcn.0056f898
mov esi, dword [0x648cdc]
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.0056f8a6
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 0x5510be
nop
cmp ecx, dword [0x648cdc]
jb 0x5510ac
xor eax, eax
jmp 0x5510b5
mov eax, dword [0x648cd8]
movzx eax, word [eax + ecx*2]
mov word [edx + ecx*2], ax
inc ecx
cmp ecx, esi
jb 0x5510a0
push 0x645aa8
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.00546600
mov ebx, dword [ebp - 0x38]
lea ecx, [ebp - 0x40]
push ebx
call fcn.00546600
push 0xa
mov dword [ebp - 0x30], 0
mov esi, 4
call fcn.0056f8a6
add esp, 4
mov edi, eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], edi
push 0xffffffffffffffff
push 0x627340
push 5
push edi
push eax
call fcn.00585d85
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.00546600
mov byte [ebp - 4], 6
test edi, edi
je 0x551139
push 2
push edi
call fcn.0056f898
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.0056f8a6
xor ecx, ecx
mov dword [ebp - 0x2c], eax
add esp, 4
xor edx, edx
mov word [eax + esi*2], cx
test esi, esi
je 0x551188
mov edi, dword [ebp - 0x40]
mov ecx, eax
sub edi, eax
cmp edx, esi
jb 0x551179
xor eax, eax
jmp 0x55117d
movzx eax, word [edi + ecx]
mov word [ecx], ax
inc edx
add ecx, 2
cmp edx, esi
jb 0x551179
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call fcn.00546d80
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 2
push esi
mov edi, eax
call fcn.0056f898
add esp, 8
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x2c]
cmp edi, 0xffffffff
setne byte [ebp - 0x21]
test eax, eax
je 0x5511c7
push 2
push eax
call fcn.0056f898
add esp, 8
cmp byte [ebp - 0x21], 0
je 0x5511ed
lea ecx, [ebp - 0x40]
call fcn.00546d80
mov esi, eax
test esi, esi
je 0x5511ed
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 2
push esi
call fcn.0056f898
add esp, 8
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x5511ff
push 2
push eax
call fcn.0056f898
add esp, 8
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x551211
push 2
push eax
call fcn.0056f898
add esp, 8
mov eax, dword [ebx]
test eax, eax
je 0x551228
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [ebx], 0
push 8
push ebx
mov dword [ebx + 4], 0
call fcn.0056f898
mov edi, dword [ebp - 0x4c]
add esp, 8
mov eax, dword [edi]
test eax, eax
je 0x551254
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [edi], 0
push 8
push edi
mov dword [edi + 4], 0
call fcn.0056f898
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.0056f3c2
mov esp, ebp
pop ebp
ret