Function at 0x494c20
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24dc
call fcn.005482e0
mov eax, dword [0x5afee0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
mov dword [ebp - 0x247c], esi
mov dword [ebp - 0x24ac], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x246c]
push eax
push 0x573330
push 1
push ebx
push 0x573340
mov dword [ebp - 0x246c], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x49510d
cmp dword [ebp - 0x246c], ebx
je 0x49510d
push 8
pop eax
add esi, 0x5d148
push esi
mov word [ebp - 0x24a0], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea edx, [ebp - 0x24a8]
push edx
mov dword [ebp - 0x2498], eax
mov eax, dword [ebp - 0x246c]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x24a0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x24a8], ebx
mov ecx, dword [eax]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0xe8]
push dword [ebp - 0x2498]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
or eax, 0xffffffff
cmp ax, word [ebp - 0x24a8]
jne 0x4950fb
mov eax, dword [ebp - 0x246c]
lea edx, [ebp - 0x2488]
push edx
mov dword [ebp - 0x2488], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
test eax, eax
jl 0x4950fb
mov esi, dword [ebp - 0x2488]
cmp esi, ebx
je 0x4950fb
push str.metalink
call fcn.004a4948
mov edi, eax
pop ecx
mov dword [ebp - 0x24b8], edi
cmp edi, ebx
je 0x4950ef
mov eax, dword [edi]
lea ecx, [ebp - 0x248c]
push ecx
push edi
mov dword [ebp - 0x248c], ebx
call dword [eax + 0x30]
test eax, eax
jl 0x4950e9
mov esi, dword [ebp - 0x248c]
cmp esi, ebx
je 0x4950e9
push str.files
call fcn.004a4948
mov esi, eax
pop ecx
mov dword [ebp - 0x24b4], esi
cmp esi, ebx
je 0x4950dd
mov eax, dword [esi]
lea ecx, [ebp - 0x2478]
push ecx
push esi
mov dword [ebp - 0x2478], ebx
call dword [eax + 0x30]
test eax, eax
jl 0x4950d7
mov eax, dword [ebp - 0x2478]
cmp eax, ebx
je 0x4950d7
lea edx, [ebp - 0x24b0]
push edx
mov dword [ebp - 0x24b0], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov ecx, dword [ebp - 0x24b0]
mov eax, dword [ebp - 0x247c]
lea edi, [ebp - 0x2468]
push edi
push dword [eax + 0x2698]
mov dword [eax + 0x269c], ecx
mov ecx, dword [ebp - 0x2478]
mov dword [ebp - 0x2468], ebx
mov edx, dword [ecx]
push ecx
call dword [edx + 0x1c]
test eax, eax
jl 0x4950c5
mov eax, dword [ebp - 0x2468]
cmp eax, ebx
je 0x4950c5
lea edx, [ebp - 0x2480]
push edx
mov dword [ebp - 0x2480], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
test eax, eax
jl 0x4950b9
cmp dword [ebp - 0x2480], ebx
je 0x4950b9
push str.file
push dword [ebp - 0x2480]
call fcn.005320ad
pop ecx
pop ecx
test eax, eax
jne 0x4950ad
mov eax, dword [ebp - 0x2468]
lea edx, [ebp - 0x2484]
push edx
mov dword [ebp - 0x2484], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
test eax, eax
jl 0x4950ad
cmp dword [ebp - 0x2484], ebx
je 0x4950ad
mov eax, dword [ebp - 0x2468]
push str.name
lea ebx, [ebp - 0x24c8]
call fcn.004a49cd
mov esi, eax
lea edi, [ebp - 0x24a0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
movsd dword es:[edi], dword [esi]
push 8
pop eax
movsd dword es:[edi], dword [esi]
cmp ax, word [ebp - 0x24a0]
jne 0x494ec4
cmp dword [ebp - 0x2498], 0
je 0x494ec4
push dword [ebp - 0x2498]
mov eax, dword [ebp - 0x247c]
push 0x57cb68
add eax, 0x62ac8
push 0x103
push eax
call fcn.00532a01
add esp, 0x10
mov esi, dword [ebp - 0x2484]
push str.resources
call fcn.004a4948
mov esi, eax
pop ecx
mov dword [ebp - 0x24a4], esi
test esi, esi
je 0x49509b
mov eax, dword [esi]
and dword [ebp - 0x2470], 0
lea ecx, [ebp - 0x2470]
push ecx
push esi
call dword [eax + 0x30]
test eax, eax
jl 0x495095
mov eax, dword [ebp - 0x2470]
test eax, eax
je 0x495095
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
and dword [ebp - 0x2464], 0
jmp 0x49506e
mov eax, dword [ebp - 0x2464]
test eax, eax
je 0x495089
and dword [ebp - 0x2474], 0
mov ecx, dword [eax]
lea edx, [ebp - 0x2474]
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
jl 0x495062
cmp dword [ebp - 0x2474], 0
je 0x495062
push 0x583f38
push dword [ebp - 0x2474]
call fcn.005320ad
pop ecx
pop ecx
test eax, eax
jne 0x495056
mov eax, dword [ebp - 0x2464]
push str.type
lea ebx, [ebp - 0x24d8]
call fcn.004a49cd
mov esi, eax
lea edi, [ebp - 0x24c8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
movsd dword es:[edi], dword [esi]
push 8
pop eax
movsd dword es:[edi], dword [esi]
cmp ax, word [ebp - 0x24c8]
jne 0x495050
push 0x57c734
push dword [ebp - 0x24c0]
call fcn.005320ad
pop ecx
pop ecx
test eax, eax
je 0x494fd1
push 0x57d26c
push dword [ebp - 0x24c0]
call fcn.005320ad
pop ecx
pop ecx
test eax, eax
jne 0x495050
xor eax, eax
mov word [ebp - 0x24a0], ax
mov eax, dword [ebp - 0x2464]
mov ecx, dword [eax]
lea edx, [ebp - 0x24a0]
push edx
push eax
call dword [ecx + 0x78]
test eax, eax
jl 0x495050
push 8
pop eax
cmp ax, word [ebp - 0x24a0]
jne 0x495050
cmp dword [ebp - 0x2498], 0
je 0x495050
xor eax, eax
push 0x2450
push eax
mov word [ebp - 0x2460], ax
lea eax, [ebp - 0x245c]
push eax
call fcn.00537010
add esp, 0xc
push 0
push dword [ebp - 0x2498]
lea esi, [ebp - 0x2460]
call fcn.00490908
pop ecx
pop ecx
test eax, eax
je 0x495050
mov eax, esi
push eax
mov eax, dword [ebp - 0x247c]
add eax, 0x62f18
call fcn.00495471
mov esi, dword [ebp - 0x24a4]
push dword [ebp - 0x2474]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x2464]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x2470]
mov ecx, dword [eax]
lea edx, [ebp - 0x2464]
push edx
push eax
call dword [ecx + 0x24]
test eax, eax
jge 0x494f21
mov eax, dword [ebp - 0x2470]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [ebp - 0x2484]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp - 0x24b4]
push dword [ebp - 0x2480]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x2468]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x2478]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [ebp - 0x24b8]
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [ebp - 0x248c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov eax, dword [ebp - 0x2488]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x246c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp - 0x247c]
mov eax, dword [esi + 0x62f28]
sub eax, dword [esi + 0x62f24]
mov ecx, 0x2454
cdq
idiv ecx
test eax, eax
jbe 0x49512f
mov dword [ebp - 0x24ac], 1
call dword [sym.imp.ole32.dll_CoUninitialize]
add esi, 0x5d148
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x24ac]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052f7d0
leave
ret