Function at 0x42981f
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24c8
call fcn.0042f680
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 0x436bdc
push 1
push ebx
push 0x436acc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x429bf5
cmp dword [ebp - 0x10], ebx
je 0x429bf5
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 0x429be9
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 0x429be9
cmp dword [ebp - 0x24], ebx
je 0x429be9
push str.metalink
push dword [ebp - 0x24]
call fcn.0041fa3a
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
mov dword [ebp - 0x50], edi
je 0x429be0
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 0x429bda
cmp dword [ebp - 0x18], ebx
je 0x429bda
push str.files
push dword [ebp - 0x18]
call fcn.0041fa3a
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
mov dword [ebp - 0x54], esi
je 0x429bd1
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 0x429bcb
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x429bcb
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 0x429bbf
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x429bbf
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 0x429bb6
cmp dword [ebp - 0x1c], ebx
je 0x429bb6
push str.file
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
test eax, eax
pop ecx
jne 0x429bad
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 0x429bad
cmp dword [ebp - 0x20], ebx
je 0x429bad
push str.name
lea eax, [ebp - 0x64]
push dword [ebp - 0xc]
push eax
call fcn.0041fac5
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 0x429a2c
cmp dword [ebp - 0x34], ebx
je 0x429a2c
push dword [ebp - 0x34]
mov eax, dword [ebp - 0x14]
add eax, 0x628a0
push 0x43bb18
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
push str.resources
push dword [ebp - 0x20]
call fcn.0041fa3a
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
mov dword [ebp - 0x4c], esi
je 0x429ba1
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 0x429b9b
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x429b9b
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 0x429b92
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x429b92
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 0x429b84
cmp dword [ebp - 0x2c], ebx
je 0x429b84
push 0x442c40
push dword [ebp - 0x2c]
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
test eax, eax
pop ecx
jne 0x429b7b
push str.type
lea eax, [ebp - 0x74]
push dword [ebp - 4]
push eax
call fcn.0041fac5
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 0x429b78
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 0x429b15
push 0x442c20
push dword [ebp - 0x5c]
call esi
pop ecx
test eax, eax
pop ecx
jne 0x429b78
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 0x429b78
cmp word [ebp - 0x3c], 8
jne 0x429b78
cmp dword [ebp - 0x34], ebx
je 0x429b78
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.004262fd
add esp, 0xc
test eax, eax
je 0x429b78
lea eax, [ebp - 0x24c8]
push eax
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 0x62ad4]
call fcn.0042a042
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 0x429a71
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 0x429c1a
mov eax, dword [esi + 0x62adc]
sub eax, ecx
mov ecx, 0x2454
cdq
idiv ecx
test eax, eax
jbe 0x429c1a
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