Function at 0x40fc82
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24c8
call fcn.00412410
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
push ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x44], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push 0x413964
push 1
push ebx
push 0x413954
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x410058
cmp dword [ebp - 0x10], ebx
je 0x410058
add esi, 0x5d128
mov word [ebp - 0x3c], 8
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea edx, [ebp - 0x48]
lea esi, [ebp - 0x3c]
push edx
mov dword [ebp - 0x34], eax
sub esp, 0x10
mov eax, dword [ebp - 0x10]
mov edi, esp
mov dword [ebp - 0x48], ebx
movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [ecx + 0xe8]
push dword [ebp - 0x34]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp word [ebp - 0x48], 0xffff
jne 0x41004c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
test eax, eax
jl 0x41004c
cmp dword [ebp - 0x24], ebx
je 0x41004c
push str.metalink
push dword [ebp - 0x24]
call fcn.00410f0a
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
mov dword [ebp - 0x50], edi
je 0x410043
mov eax, dword [edi]
lea ecx, [ebp - 0x18]
push ecx
push edi
mov dword [ebp - 0x18], ebx
call dword [eax + 0x30]
test eax, eax
jl 0x41003d
cmp dword [ebp - 0x18], ebx
je 0x41003d
push str.files
push dword [ebp - 0x18]
call fcn.00410f0a
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
mov dword [ebp - 0x54], esi
je 0x410034
mov eax, dword [esi]
lea ecx, [ebp - 0x28]
push ecx
push esi
mov dword [ebp - 0x28], ebx
call dword [eax + 0x30]
test eax, eax
jl 0x41002e
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x41002e
lea edx, [ebp - 0x40]
mov dword [ebp - 0x40], ebx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x20]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x40]
lea edi, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
mov dword [eax + 0x2698], ecx
mov ecx, dword [ebp - 0x28]
push edi
push dword [eax + 0x2694]
mov edx, dword [ecx]
push ecx
call dword [edx + 0x1c]
test eax, eax
jl 0x410022
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x410022
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
jl 0x410019
cmp dword [ebp - 0x1c], ebx
je 0x410019
push str.file
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
test eax, eax
pop ecx
jne 0x410010
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
test eax, eax
jl 0x410010
cmp dword [ebp - 0x20], ebx
je 0x410010
push str.name
lea eax, [ebp - 0x64]
push dword [ebp - 0xc]
push eax
call fcn.00410f95
mov esi, eax
lea edi, [ebp - 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0xc
movsd dword es:[edi], dword [esi]
cmp word [ebp - 0x3c], 8
jne 0x40fe8f
cmp dword [ebp - 0x34], ebx
je 0x40fe8f
push dword [ebp - 0x34]
mov eax, dword [ebp - 0x14]
add eax, 0x628a0
push 0x417568
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
push str.resources
push dword [ebp - 0x20]
call fcn.00410f0a
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
mov dword [ebp - 0x4c], esi
je 0x410004
mov eax, dword [esi]
lea ecx, [ebp - 8]
push ecx
push esi
mov dword [ebp - 8], ebx
call dword [eax + 0x30]
test eax, eax
jl 0x40fffe
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x40fffe
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
test eax, eax
jl 0x40fff5
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x40fff5
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
jl 0x40ffe7
cmp dword [ebp - 0x2c], ebx
je 0x40ffe7
push 0x420790
push dword [ebp - 0x2c]
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
test eax, eax
pop ecx
jne 0x40ffde
push str.type
lea eax, [ebp - 0x74]
push dword [ebp - 4]
push eax
call fcn.00410f95
mov esi, eax
lea edi, [ebp - 0x64]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0xc
movsd dword es:[edi], dword [esi]
cmp word [ebp - 0x64], 8
jne 0x40ffdb
mov esi, dword [sym.imp.MSVCRT.dll__wcsicmp]
push str.http
push dword [ebp - 0x5c]
call esi
pop ecx
test eax, eax
pop ecx
je 0x40ff78
push 0x41ff60
push dword [ebp - 0x5c]
call esi
pop ecx
test eax, eax
pop ecx
jne 0x40ffdb
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x3c]
mov word [ebp - 0x3c], bx
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x78]
test eax, eax
jl 0x40ffdb
cmp word [ebp - 0x3c], 8
jne 0x40ffdb
cmp dword [ebp - 0x34], ebx
je 0x40ffdb
mov ecx, 0x914
xor eax, eax
lea edi, [ebp - 0x24c4]
mov word [ebp - 0x24c8], bx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24c8]
push ebx
push eax
push dword [ebp - 0x34]
call fcn.0040ca30
add esp, 0xc
test eax, eax
je 0x40ffdb
lea eax, [ebp - 0x24c8]
push eax
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 0x62ad4]
call fcn.0041028a
mov esi, dword [ebp - 0x4c]
push dword [ebp - 0x2c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x40fed4
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov esi, dword [ebp - 0x54]
push dword [ebp - 0x1c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov edi, dword [ebp - 0x50]
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov esi, dword [ebp - 0x14]
mov ecx, dword [esi + 0x62ad8]
cmp ecx, ebx
je 0x41007d
mov eax, dword [esi + 0x62adc]
sub eax, ecx
mov ecx, 0x2454
cdq
idiv ecx
test eax, eax
jbe 0x41007d
mov dword [ebp - 0x44], 1
call dword [sym.imp.ole32.dll_CoUninitialize]
add esi, 0x5d128
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x44]
pop edi
pop esi
pop ebx
leave
ret