Function at 0x42f582
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24c8
call fcn.00431de0
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 0x436f2c
push 1
push ebx
push 0x436e1c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x42f958
cmp dword [ebp - 0x10], ebx
je 0x42f958
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 0x42f94c
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 0x42f94c
cmp dword [ebp - 0x24], ebx
je 0x42f94c
push str.metalink
push dword [ebp - 0x24]
call fcn.004260bd
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
mov dword [ebp - 0x50], edi
je 0x42f943
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 0x42f93d
cmp dword [ebp - 0x18], ebx
je 0x42f93d
push str.files
push dword [ebp - 0x18]
call fcn.004260bd
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
mov dword [ebp - 0x54], esi
je 0x42f934
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 0x42f92e
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x42f92e
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 0x42f922
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x42f922
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 0x42f919
cmp dword [ebp - 0x1c], ebx
je 0x42f919
push str.file
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
test eax, eax
pop ecx
jne 0x42f910
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 0x42f910
cmp dword [ebp - 0x20], ebx
je 0x42f910
push str.name
lea eax, [ebp - 0x64]
push dword [ebp - 0xc]
push eax
call fcn.00426148
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 0x42f78f
cmp dword [ebp - 0x34], ebx
je 0x42f78f
push dword [ebp - 0x34]
mov eax, dword [ebp - 0x14]
add eax, 0x628a0
push 0x43baa0
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
push str.resources
push dword [ebp - 0x20]
call fcn.004260bd
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
mov dword [ebp - 0x4c], esi
je 0x42f904
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 0x42f8fe
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x42f8fe
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 0x42f8f5
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x42f8f5
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 0x42f8e7
cmp dword [ebp - 0x2c], ebx
je 0x42f8e7
push 0x465934
push dword [ebp - 0x2c]
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
test eax, eax
pop ecx
jne 0x42f8de
push str.type
lea eax, [ebp - 0x74]
push dword [ebp - 4]
push eax
call fcn.00426148
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 0x42f8db
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 0x42f878
push 0x464f30
push dword [ebp - 0x5c]
call esi
pop ecx
test eax, eax
pop ecx
jne 0x42f8db
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 0x42f8db
cmp word [ebp - 0x3c], 8
jne 0x42f8db
cmp dword [ebp - 0x34], ebx
je 0x42f8db
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.0042c060
add esp, 0xc
test eax, eax
je 0x42f8db
lea eax, [ebp - 0x24c8]
push eax
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 0x62ad4]
call fcn.0042fda5
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 0x42f7d4
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 0x42f97d
mov eax, dword [esi + 0x62adc]
sub eax, ecx
mov ecx, 0x2454
cdq
idiv ecx
test eax, eax
jbe 0x42f97d
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