Function at 0x474934
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24dc
call fcn.005a41d0
mov eax, dword [0x61dc40]
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 0x5cd820
push 1
push ebx
push 0x5cd830
mov dword [ebp - 0x246c], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x474e21
cmp dword [ebp - 0x246c], ebx
je 0x474e21
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 0x474e0f
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 0x474e0f
mov esi, dword [ebp - 0x2488]
cmp esi, ebx
je 0x474e0f
push str.metalink
call fcn.0047ffdd
mov edi, eax
pop ecx
mov dword [ebp - 0x24b8], edi
cmp edi, ebx
je 0x474e03
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 0x474dfd
mov esi, dword [ebp - 0x248c]
cmp esi, ebx
je 0x474dfd
push str.files
call fcn.0047ffdd
mov esi, eax
pop ecx
mov dword [ebp - 0x24b4], esi
cmp esi, ebx
je 0x474df1
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 0x474deb
mov eax, dword [ebp - 0x2478]
cmp eax, ebx
je 0x474deb
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 0x474dd9
mov eax, dword [ebp - 0x2468]
cmp eax, ebx
je 0x474dd9
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 0x474dcd
cmp dword [ebp - 0x2480], ebx
je 0x474dcd
push str.file
push dword [ebp - 0x2480]
call fcn.0058f69a
pop ecx
pop ecx
test eax, eax
jne 0x474dc1
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 0x474dc1
cmp dword [ebp - 0x2484], ebx
je 0x474dc1
mov eax, dword [ebp - 0x2468]
push 0x5e8938
lea ebx, [ebp - 0x24c8]
call fcn.00480062
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 0x474bd8
cmp dword [ebp - 0x2498], 0
je 0x474bd8
push dword [ebp - 0x2498]
mov eax, dword [ebp - 0x247c]
push 0x5db9e0
add eax, 0x62ac8
push 0x103
push eax
call fcn.0058f42f
add esp, 0x10
mov esi, dword [ebp - 0x2484]
push str.resources
call fcn.0047ffdd
mov esi, eax
pop ecx
mov dword [ebp - 0x24a4], esi
test esi, esi
je 0x474daf
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 0x474da9
mov eax, dword [ebp - 0x2470]
test eax, eax
je 0x474da9
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
and dword [ebp - 0x2464], 0
jmp 0x474d82
mov eax, dword [ebp - 0x2464]
test eax, eax
je 0x474d9d
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 0x474d76
cmp dword [ebp - 0x2474], 0
je 0x474d76
push 0x5e9544
push dword [ebp - 0x2474]
call fcn.0058f69a
pop ecx
pop ecx
test eax, eax
jne 0x474d6a
mov eax, dword [ebp - 0x2464]
push str.type
lea ebx, [ebp - 0x24d8]
call fcn.00480062
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 0x474d64
push str.http
push dword [ebp - 0x24c0]
call fcn.0058f69a
pop ecx
pop ecx
test eax, eax
je 0x474ce5
push 0x5ed384
push dword [ebp - 0x24c0]
call fcn.0058f69a
pop ecx
pop ecx
test eax, eax
jne 0x474d64
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 0x474d64
push 8
pop eax
cmp ax, word [ebp - 0x24a0]
jne 0x474d64
cmp dword [ebp - 0x2498], 0
je 0x474d64
xor eax, eax
push 0x2450
push eax
mov word [ebp - 0x2460], ax
lea eax, [ebp - 0x245c]
push eax
call fcn.00596530
add esp, 0xc
push 0
push dword [ebp - 0x2498]
lea esi, [ebp - 0x2460]
call fcn.00470695
pop ecx
pop ecx
test eax, eax
je 0x474d64
mov eax, esi
push eax
mov eax, dword [ebp - 0x247c]
add eax, 0x62f18
call fcn.00475103
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 0x474c35
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 0x474e43
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.0058f3cf
leave
ret