Function at 0x407030
Capabilities:
Check if file exists
Delete file
Download url
Get file attributes
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8cc
mov eax, dword [0x42701c]
xor eax, esp
mov dword [esp + 0x8c8], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x20]
push eax
push 0x41e3bc
push 0x17
xor ebx, ebx
push ebx
push 0x41e3dc
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40714c
mov ecx, dword [esp + 0x24]
push str.Reading_init.xml...
push 0x4208f8
call fcn.004038b0
push edi
push str._sinit.xml
lea ecx, [esp + 0x4d0]
push 0x104
push ecx
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
lea edx, [esp + 0x4c8]
push edx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40714c
test al, 0x10
jne 0x40714c
push ebx
push ebx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x4d4]
push ecx
push ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.urlmon.dll_URLOpenBlockingStreamW]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x30], ebx
mov edx, dword [eax]
mov edx, dword [edx]
push 0x41e3ec
push eax
call edx
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
test eax, eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
je 0x407163
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x4c8]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x8c8]
xor ecx, esp
call fcn.0040fa5b
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x3c]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x40714c
call fcn.00406f50
mov edi, eax
mov ecx, dword [edi]
mov eax, dword [ecx + 0x2c]
lea edx, [esp + 0x10]
push edx
push str.hash
push edi
mov dword [esp + 0x3c], edi
call eax
cmp word [esp + 0x10], bx
je 0x4071ad
mov ecx, dword [esp + 0x18]
push ecx
push 0x100
push esi
call fcn.0040fe56
add esp, 0xc
mov edx, dword [edi]
mov ecx, dword [edx + 0x2c]
lea eax, [esp + 0x10]
push eax
push str.image
push edi
call ecx
cmp word [esp + 0x10], bx
je 0x4071df
mov edx, dword [esp + 0x18]
push edx
lea eax, [esi + 0x400]
push 0x100
push eax
call fcn.0040fe56
add esp, 0xc
mov ecx, dword [edi]
mov eax, dword [ecx + 0x2c]
lea edx, [esp + 0x10]
push edx
push str.text
push edi
call eax
cmp word [esp + 0x10], bx
je 0x407211
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esi + 0x704]
push 0x100
push edx
call fcn.0040fe56
add esp, 0xc
mov eax, dword [edi]
mov edx, dword [eax + 0x2c]
lea ecx, [esp + 0x10]
push ecx
push str.title
push edi
call edx
cmp word [esp + 0x10], bx
je 0x407243
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esi + 0x200]
push 0x100
push ecx
call fcn.0040fe56
add esp, 0xc
mov edx, dword [edi]
mov ecx, dword [edx + 0x2c]
lea eax, [esp + 0x10]
push eax
push str.type
push edi
call ecx
cmp word [esp + 0x10], bx
je 0x407272
mov edx, dword [esp + 0x18]
push edx
lea eax, [esi + 0x684]
push 0x40
push eax
call fcn.0040fe56
add esp, 0xc
mov ecx, dword [edi]
mov eax, dword [ecx + 0x2c]
lea edx, [esp + 0x10]
push edx
push str.entity
push edi
call eax
cmp word [esp + 0x10], bx
je 0x4072a4
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esi + 0x904]
push 0x100
push edx
call fcn.0040fe56
add esp, 0xc
mov eax, dword [edi]
mov edx, dword [eax + 0x2c]
lea ecx, [esp + 0x10]
push ecx
push 0x421438
push edi
call edx
cmp word [esp + 0x10], bx
je 0x4072d6
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esi + 0xb04]
push 0x104
push ecx
call fcn.0040fe56
add esp, 0xc
mov edx, dword [edi]
mov ecx, dword [edx + 0x2c]
lea eax, [esp + 0x10]
push eax
push str.artist
push edi
call ecx
cmp word [esp + 0x10], bx
je 0x407308
mov edx, dword [esp + 0x18]
push edx
lea eax, [esi + 0xd0c]
push 0x104
push eax
call fcn.0040fe56
add esp, 0xc
mov ecx, dword [edi]
mov eax, dword [ecx + 0x2c]
lea edx, [esp + 0x10]
push edx
push 0x421450
push edi
call eax
cmp word [esp + 0x10], bx
je 0x407337
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esi + 0x600]
push 0x40
push edx
call fcn.0040fe56
add esp, 0xc
mov eax, dword [edi]
mov edx, dword [eax + 0x2c]
lea ecx, [esp + 0x10]
push ecx
push str.pinstallUrl
push edi
call edx
cmp word [esp + 0x10], bx
je 0x407369
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esi + 0x111c]
push 0x104
push ecx
call fcn.0040fe56
add esp, 0xc
mov edx, dword [edi]
mov ecx, dword [edx + 0x2c]
lea eax, [esp + 0x10]
push eax
push str.statUrl
push edi
call ecx
cmp word [esp + 0x10], bx
je 0x40739b
mov edx, dword [esp + 0x18]
push edx
lea eax, [esi + 0xf14]
push 0x104
push eax
call fcn.0040fe56
add esp, 0xc
add esi, 0x600
push esi
push str.pid_from_init.xml_s
lea ecx, [esp + 0x50]
push 0x40
push ecx
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
mov ecx, dword [esp + 0x34]
add esp, 0x10
lea edx, [esp + 0x48]
push edx
push 0x4208f8
call fcn.004038b0
mov eax, dword [esp + 0x34]
mov ebx, str._pid
call fcn.00407840
test al, al
je 0x407429
mov eax, dword [esp + 0x34]
call fcn.004078e0
mov ebx, eax
test ebx, ebx
je 0x407429
push ebx
push esi
lea eax, [esp + 0x2d0]
push str.Replace_PID_from_commandline_old_s__new_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [esp + 0x2c8]
push ecx
mov ecx, dword [esp + 0x28]
push 0x4208f8
call fcn.004038b0
push ebx
push 0x420918
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
xor edx, edx
lea ecx, [esp + 0x10]
push ecx
mov word [esp + 0xcc], dx
mov eax, dword [edi]
mov edx, dword [eax + 0x2c]
push str.pinstall
push edi
call edx
cmp word [esp + 0x10], 0
je 0x407467
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0xcc]
push 0x100
push ecx
call fcn.0040fe56
add esp, 0xc
cmp byte [ebp + 0x14], 0
jne 0x407590
push 0x208
call fcn.0040fa6a
mov edx, dword [esp + 0x44]
add esp, 4
push edx
push str.Software_s
push 0x104
push eax
mov dword [esp + 0x44], eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
lea eax, [esp + 0x44]
push eax
lea esi, [esp + 0x6e4]
mov dword [esp + 0x4c], str.SoftwarePinstall
call fcn.00404500
add esp, 0x14
cmp word [esp + 0x6d0], 0
je 0x40750c
lea ecx, [esp + 0xc8]
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4074ee
test dx, dx
je 0x4074ea
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4074ee
add eax, 4
add ecx, 4
test dx, dx
jne 0x4074c8
xor eax, eax
jmp 0x4074f3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40750c
mov ecx, dword [esp + 0x24]
push str.pinstall_exist_already
push 0x4208f8
call fcn.004038b0
jmp 0x407583
cmp word [esp + 0xc8], 0
je 0x407583
mov edi, dword [ebp + 0x18]
mov ebx, dword [esp + 0x24]
lea esi, [esp + 0xc8]
call fcn.004092f0
mov esi, dword [esp + 0x44]
mov dword [esi + 0x680], eax
test eax, eax
je 0x40757f
mov eax, dword [esp + 0x30]
push 0x100
lea edx, [esp + 0x2cc]
push edx
xor ecx, ecx
push str.pparams
mov word [esp + 0x2d4], cx
call fcn.00406ff0
mov ecx, dword [esi + 0x680]
add esp, 0xc
lea eax, [esp + 0x2c8]
push eax
add ecx, 4
push 0x100
push ecx
call fcn.0040fe56
add esp, 0xc
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
push edx
call fcn.0040fa9f
add esp, 4
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
mov eax, dword [esp + 0x3c]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0x8d4]
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.0040fa5b
mov esp, ebp
pop ebp
ret