Function at 0x54bdc0
Capabilities:
Delete file

Disassembly:
push 8
push 0x20
mov eax, 0x606f57
call fcn.005f9b71
mov esi, ecx
mov dword [ebp - 0x1c], esi
cmp dword [ebx + 8], 0
je 0x54c1b0
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x54c1b0
mov ecx, dword [esi + 0x24]
mov dword [esi + 0x28], eax
test ecx, ecx
je 0x54bdf8
push ecx
call fcn.0041c1da
push 0x98
call fcn.004da873
pop ecx
mov ecx, eax
mov dword [ebp - 0x28], eax
call fcn.005c2c50
mov ecx, eax
mov dword [esi + 0x24], ecx
test ecx, ecx
jne 0x54be20
mov eax, 0x8007000e
jmp 0x54c1b5
mov eax, dword [0x673d60]
xor edx, edx
test eax, eax
push 0xea60
sete dl
neg eax
push 0
sbb eax, eax
mov dword [ebp - 0x28], edx
mov edx, dword [ebx + 8]
and eax, 2
push eax
xor eax, eax
inc eax
push eax
push dword [0x673d68]
call fcn.005c2750
mov edi, dword [esi + 0x24]
mov dword [ebp - 0x18], eax
test eax, eax
jns 0x54be72
test edi, edi
je 0x54be69
push ecx
mov ecx, edi
call fcn.0041c1da
mov eax, dword [ebp - 0x18]
and dword [esi + 0x24], 0
jmp 0x54c1b5
mov edi, dword [edi + 4]
mov dword [ebp - 0x2c], edi
test edi, edi
je 0x54be82
mov eax, dword [edi]
push edi
call dword [eax + 4]
and dword [ebp - 4], 0
cmp dword [0x673d6c], 0
je 0x54bea6
mov ecx, dword [esi + 0x24]
xor edx, edx
call fcn.005c2590
mov ecx, dword [esi + 0x24]
xor eax, eax
lea edx, [eax + 1]
call fcn.005c20c0
cmp dword [0x673d70], 0
je 0x54bec1
mov ecx, dword [esi + 0x24]
xor eax, eax
push 0x673dc4
lea edx, [eax + 1]
call fcn.005c2030
cmp dword [0x673d74], 0
je 0x54bed8
mov edx, dword [0x673d94]
mov ecx, dword [esi + 0x24]
call fcn.005c1fb0
mov eax, dword [esi + 0x24]
mov ecx, 0x88
cmp dword [eax + 0x90], 0
lea edx, [ecx + 4]
cmovne ecx, edx
push dword [ecx + eax]
lea ecx, [esi + 0x20]
call fcn.0041bdfa
lea edx, [esi + 0x20]
xor ecx, ecx
mov eax, dword [edx]
mov word [eax + 0x10], cx
cmp dword [ebp - 0x28], ecx
je 0x54bf76
mov eax, dword [0x673d64]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x54bf24
mov eax, dword [edi]
lea ecx, [ebp - 0x18]
push ecx
push edi
call dword [eax + 0x28]
mov eax, dword [ebp - 0x18]
lea edx, [esi + 0x20]
cmp eax, 8
je 0x54bf3e
push 0x10
pop ecx
cmp eax, ecx
je 0x54bf3e
cmp eax, 0x18
je 0x54bf3e
cmp eax, 0x20
cmovne eax, ecx
mov dword [ebp - 0x18], eax
mov eax, dword [edx]
xor ecx, ecx
inc ecx
mov word [eax], cx
mov ecx, dword [edx]
mov ax, word [ebp - 0x18]
mov word [ecx + 0xe], ax
mov edx, dword [edx]
mov cx, word [edx + 0xe]
movzx eax, word [edx + 2]
shr cx, 3
movzx ecx, cx
imul ecx, eax
mov word [edx + 0xc], cx
mov ecx, dword [esi + 0x20]
movzx eax, word [ecx + 0xc]
imul eax, dword [ecx + 4]
mov dword [ecx + 8], eax
lea ecx, [esi + 0x1c]
mov eax, dword [ecx]
test eax, eax
je 0x54bf8b
and dword [ecx], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esi + 0x1c]
mov edx, dword [0x673d60]
push ecx
call fcn.005d5c38
mov dword [ebp - 0x18], eax
test eax, eax
jns 0x54bfc7
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x54bfbe
mov ecx, eax
call fcn.005c2b50
push 0x98
push dword [ebp - 0x28]
call fcn.004dadca
pop ecx
pop ecx
and dword [esi + 0x24], 0
jmp 0x54c19d
and dword [ebp - 0x14], 0
xor eax, eax
lea edx, [ebp - 0x14]
inc eax
mov byte [ebp - 4], al
mov eax, dword [esi + 0x1c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
jne 0x54c030
push 0x636164
lea ecx, [ebp - 0x18]
call fcn.0040d2ee
push dword [ebp - 0x14]
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.0040ce1d
mov ecx, dword [ebx + 0xc]
mov eax, dword [eax]
push eax
push dword [eax - 8]
call fcn.0040f454
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x54c01d
call fcn.00407965
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x54c030
call fcn.00407965
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax]
call fcn.00414841
test eax, eax
je 0x54c0e5
mov eax, dword [0x673d7c]
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x54c0d5
mov eax, dword [0x668294]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0xc]
push dword [eax]
lea eax, [ebp - 0x18]
push 0x814d
push eax
call fcn.0041c926
mov esi, dword [ebp - 0x18]
add esp, 0xc
push 0x40024
push dword [0x674764]
push esi
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_MessageBoxW]
sub eax, 7
lea ecx, [esi - 0xc]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x28], eax
cmp ecx, 0x668010
je 0x54c0a6
call fcn.00407965
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x1c]
test eax, eax
je 0x54c0da
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x54c0cd
mov ecx, eax
call fcn.005c2b50
push 0x98
push dword [ebp - 0x28]
call fcn.004dadca
pop ecx
pop ecx
xor eax, eax
inc eax
mov dword [ebp - 0x18], eax
jmp 0x54c11c
cmp eax, 2
jne 0x54c0ad
mov eax, dword [ebx + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebx + 0xc]
push dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
push dword [eax]
call fcn.005d5b30
mov dword [ebp - 0x18], eax
test eax, eax
jns 0x54c123
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x54c11c
mov ecx, eax
call fcn.005c2b50
push 0x98
push dword [ebp - 0x28]
call fcn.004dadca
pop ecx
pop ecx
xor eax, eax
mov dword [esi + 0x24], eax
jmp 0x54c18a
push edi
lea ecx, [ebp - 0x24]
call fcn.0041c336
push dword [esi + 0x1c]
lea ecx, [ebp - 0x20]
call fcn.0041c336
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x54c14e
mov edx, dword [ebp - 0x20]
test edx, edx
je 0x54c14e
call fcn.0054c1c0
mov ecx, esi
call fcn.0040834e
neg eax
mov byte [ebp - 4], 2
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x54c177
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
inc eax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x54c18a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x14], 0
je 0x54c199
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
and dword [ebp - 0x14], 0
or dword [ebp - 4], 0xffffffff
test edi, edi
je 0x54c1ab
mov ecx, dword [edi]
push edi
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
jmp 0x54c1b5
mov eax, 0x80004003
call fcn.005f9aee
ret 0xc