Function at 0x42129f
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24c8
call fcn.00427310
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 0x42a46c
push 1
push ebx
push 0x42a35c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x421675
cmp dword [ebp - 0x10], ebx
je 0x421675
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 0x421669
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 0x421669
cmp dword [ebp - 0x24], ebx
je 0x421669
push str.metalink
push dword [ebp - 0x24]
call fcn.0041b478
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
mov dword [ebp - 0x50], edi
je 0x421660
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 0x42165a
cmp dword [ebp - 0x18], ebx
je 0x42165a
push str.files
push dword [ebp - 0x18]
call fcn.0041b478
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
mov dword [ebp - 0x54], esi
je 0x421651
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 0x42164b
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x42164b
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 0x42163f
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x42163f
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 0x421636
cmp dword [ebp - 0x1c], ebx
je 0x421636
push str.file
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
test eax, eax
pop ecx
jne 0x42162d
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 0x42162d
cmp dword [ebp - 0x20], ebx
je 0x42162d
push str.name
lea eax, [ebp - 0x64]
push dword [ebp - 0xc]
push eax
call fcn.0041b503
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 0x4214ac
cmp dword [ebp - 0x34], ebx
je 0x4214ac
push dword [ebp - 0x34]
mov eax, dword [ebp - 0x14]
add eax, 0x628a0
push 0x42eb18
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
push str.resources
push dword [ebp - 0x20]
call fcn.0041b478
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
mov dword [ebp - 0x4c], esi
je 0x421621
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 0x42161b
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x42161b
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 0x421612
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x421612
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 0x421604
cmp dword [ebp - 0x2c], ebx
je 0x421604
push 0x434974
push dword [ebp - 0x2c]
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
test eax, eax
pop ecx
jne 0x4215fb
push str.type
lea eax, [ebp - 0x74]
push dword [ebp - 4]
push eax
call fcn.0041b503
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 0x4215f8
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 0x421595
push 0x434954
push dword [ebp - 0x5c]
call esi
pop ecx
test eax, eax
pop ecx
jne 0x4215f8
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 0x4215f8
cmp word [ebp - 0x3c], 8
jne 0x4215f8
cmp dword [ebp - 0x34], ebx
je 0x4215f8
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.0041dd7d
add esp, 0xc
test eax, eax
je 0x4215f8
lea eax, [ebp - 0x24c8]
push eax
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 0x62ad4]
call fcn.00421ac2
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 0x4214f1
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 0x42169a
mov eax, dword [esi + 0x62adc]
sub eax, ecx
mov ecx, 0x2454
cdq
idiv ecx
test eax, eax
jbe 0x42169a
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