Function at 0x489656
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x244c]
mov eax, 0x24cc
call fcn.004933d0
mov eax, dword [0x4f51d0]
xor eax, ebp
mov dword [ebp + 0x2448], eax
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x54], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x18]
push eax
push 0x4d20b8
push 1
push ebx
push 0x4d21c8
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x489a3f
cmp dword [ebp - 0x18], ebx
je 0x489a3f
push 8
pop eax
add esi, 0x5d140
push esi
mov word [ebp - 0x48], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea edx, [ebp - 0x58]
push edx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x18]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x48]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x58], ebx
mov ecx, dword [eax]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0xe8]
push dword [ebp - 0x40]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
or eax, 0xffffffff
cmp ax, word [ebp - 0x58]
jne 0x489a33
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
test eax, eax
jl 0x489a33
cmp dword [ebp - 0x24], ebx
je 0x489a33
push str.metalink
push dword [ebp - 0x24]
call fcn.0047cb50
mov edi, eax
pop ecx
pop ecx
mov dword [ebp - 0x60], edi
cmp edi, ebx
je 0x489a2a
mov eax, dword [edi]
lea ecx, [ebp - 0x30]
push ecx
push edi
mov dword [ebp - 0x30], ebx
call dword [eax + 0x30]
test eax, eax
jl 0x489a24
cmp dword [ebp - 0x30], ebx
je 0x489a24
push str.files
push dword [ebp - 0x30]
call fcn.0047cb50
mov esi, eax
pop ecx
pop ecx
mov dword [ebp - 0x5c], esi
cmp esi, ebx
je 0x489a1b
mov eax, dword [esi]
lea ecx, [ebp - 0x38]
push ecx
push esi
mov dword [ebp - 0x38], ebx
call dword [eax + 0x30]
test eax, eax
jl 0x489a15
mov eax, dword [ebp - 0x38]
cmp eax, ebx
je 0x489a15
lea edx, [ebp - 0x50]
push edx
mov dword [ebp - 0x50], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x20]
lea edi, [ebp - 0x14]
push edi
push dword [eax + 0x2694]
mov dword [eax + 0x2698], ecx
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x14], ebx
mov edx, dword [ecx]
push ecx
call dword [edx + 0x1c]
test eax, eax
jl 0x489a09
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x489a09
lea edx, [ebp - 0x34]
push edx
mov dword [ebp - 0x34], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
test eax, eax
jl 0x489a00
cmp dword [ebp - 0x34], ebx
je 0x489a00
push str.file
push dword [ebp - 0x34]
call fcn.0048c804
pop ecx
pop ecx
test eax, eax
jne 0x4899f7
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x28]
push edx
mov dword [ebp - 0x28], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
test eax, eax
jl 0x4899f7
cmp dword [ebp - 0x28], ebx
je 0x4899f7
push 0x4ce128
push dword [ebp - 0x14]
lea eax, [ebp - 0x70]
push eax
call fcn.0047cbda
mov esi, eax
lea edi, [ebp - 0x48]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0xc
movsd dword es:[edi], dword [esi]
push 8
pop eax
movsd dword es:[edi], dword [esi]
cmp ax, word [ebp - 0x48]
jne 0x489878
cmp dword [ebp - 0x40], ebx
je 0x489878
push dword [ebp - 0x40]
mov eax, dword [ebp - 0x20]
push 0x4d8558
add eax, 0x628b8
push 0x103
push eax
call fcn.0048e74d
add esp, 0x10
push str.resources
push dword [ebp - 0x28]
call fcn.0047cb50
mov esi, eax
pop ecx
pop ecx
mov dword [ebp - 0x4c], esi
cmp esi, ebx
je 0x4899eb
mov eax, dword [esi]
lea ecx, [ebp - 0x1c]
push ecx
push esi
mov dword [ebp - 0x1c], ebx
call dword [eax + 0x30]
test eax, eax
jl 0x4899e5
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x4899e5
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
mov dword [ebp - 0x10], ebx
jmp 0x4899c7
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x4899dc
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x2c], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
test eax, eax
jl 0x4899be
cmp dword [ebp - 0x2c], ebx
je 0x4899be
push 0x4e0b7c
push dword [ebp - 0x2c]
call fcn.0048c804
pop ecx
pop ecx
test eax, eax
jne 0x4899b5
push 0x4ce108
push dword [ebp - 0x10]
lea eax, [ebp - 0x80]
push eax
call fcn.0047cbda
mov esi, eax
lea edi, [ebp - 0x70]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0xc
movsd dword es:[edi], dword [esi]
push 8
pop eax
movsd dword es:[edi], dword [esi]
cmp ax, word [ebp - 0x70]
jne 0x4899b2
push str.http
push dword [ebp - 0x68]
call fcn.0048c804
pop ecx
pop ecx
test eax, eax
je 0x489952
push 0x4cd564
push dword [ebp - 0x68]
call fcn.0048c804
pop ecx
pop ecx
test eax, eax
jne 0x4899b2
xor eax, eax
mov word [ebp - 0x48], ax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x48]
push edx
push eax
call dword [ecx + 0x78]
test eax, eax
jl 0x4899b2
push 8
pop eax
cmp ax, word [ebp - 0x48]
jne 0x4899b2
cmp dword [ebp - 0x40], ebx
je 0x4899b2
xor eax, eax
push 0x2450
mov word [ebp - 0xc], ax
lea eax, [ebp - 8]
push ebx
push eax
call fcn.00492200
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x40]
call fcn.00483828
add esp, 0x18
test eax, eax
je 0x4899b2
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0xc]
push eax
add ecx, 0x62b00
call fcn.00489062
mov esi, dword [ebp - 0x4c]
push dword [ebp - 0x2c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
call dword [ecx + 0x24]
test eax, eax
jge 0x4898c2
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp - 0x5c]
push dword [ebp - 0x34]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [ebp - 0x60]
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp - 0x20]
mov eax, dword [esi + 0x62b10]
sub eax, dword [esi + 0x62b0c]
mov ecx, 0x2454
cdq
idiv ecx
test eax, eax
jbe 0x489a5e
mov dword [ebp - 0x54], 1
call dword [sym.imp.ole32.dll_CoUninitialize]
add esi, 0x5d140
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp + 0x2448]
mov eax, dword [ebp - 0x54]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048c64c
add ebp, 0x244c
leave
ret