Function at 0x40ce30
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x2c4
mov eax, dword [0x42482c]
xor eax, esp
push ebx
push ebp
push esi
push edi
mov esi, ecx
push str.http:__cloudinfo.rising.com.cn_cloudconfig_GuideConfig5701.xml
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2d4], eax
mov dword [esp + 0x34], esi
call fcn.004048b0
lea eax, [esp + 0xc8]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0xc8]
push ecx
xor edi, edi
push edi
push 0x41fb40
mov edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ecx, dword [esp + 0x28]
push edi
push edi
lea eax, [esp + 0xd0]
push eax
push ecx
lea ecx, [esi + 4]
call fcn.00405120
test eax, eax
jne 0x40d163
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [esp + 0x14]
push edx
push 0x41f9a0
push 0x17
push edi
push 0x41fb30
mov dword [esp + 0x24], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, edi
jl 0x40cf04
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ole32.dll_OleRun]
mov esi, eax
cmp esi, edi
jl 0x40cef6
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x41f990
push eax
call dword [ecx]
mov esi, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp esi, edi
jge 0x40cf0a
mov dword [esp + 0x10], edi
cmp esi, edi
jne 0x40d12b
lea edx, [esp + 0xc8]
push edx
lea ecx, [esp + 0x30]
call fcn.004048b0
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea ecx, [esp + 0x2c]
call fcn.0040b870
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x3c], eax
mov ebx, eax
mov eax, dword [esp + 0x10]
test eax, eax
mov word [esp + 0x34], 8
mov esi, dword [esp + 0x34]
jne 0x40cf64
push 0x80004003
call fcn.0041e4b0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
sub esp, 0x10
mov edx, esp
mov dword [edx], esi
mov dword [edx + 4], edi
mov dword [edx + 8], ebx
push eax
mov dword [edx + 0xc], ebp
call dword [ecx + 0xe8]
test eax, eax
jne 0x40d102
cmp word [esp + 0x24], 0xffff
jne 0x40d102
mov ecx, dword [esp + 0x10]
xor edi, edi
cmp ecx, edi
mov dword [esp + 0x14], eax
jne 0x40cfb2
push 0x80004003
call fcn.0041e4b0
mov eax, dword [esp + 0x14]
cmp eax, edi
mov esi, dword [esp + 0x10]
je 0x40cfc0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push str.CONFIG_SWITCH
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], edi
call fcn.0040b6b0
mov eax, dword [eax]
mov edx, dword [esi]
lea ecx, [esp + 0x14]
push ecx
push eax
push esi
call dword [edx + 0x94]
mov edx, dword [esp + 0x18]
mov ebp, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ebx, eax
neg ebx
sbb bl, bl
push edx
inc bl
call ebp
test bl, bl
je 0x40d0f4
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], edi
call fcn.0040b580
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
call dword [ecx + 0x68]
test eax, eax
jne 0x40d0eb
mov eax, dword [esp + 0x18]
push 0x41fb18
push eax
call fcn.0041e722
add esp, 8
cmp eax, 0xffffffff
je 0x40d0eb
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], edi
call fcn.0040b580
push str.CONFIG_URL
lea ecx, [esp + 0x20]
mov esi, eax
call fcn.0040b6b0
mov edi, dword [eax]
mov ebx, dword [esi]
lea ecx, [esp + 0x20]
call 0x40b820
push eax
push edi
push esi
call dword [ebx + 0x94]
mov ecx, dword [esp + 0x1c]
mov ebx, eax
neg ebx
sbb bl, bl
push ecx
inc bl
call ebp
test bl, bl
je 0x40d0dd
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], 0
call fcn.0040b580
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [edx + 0x68]
test eax, eax
jne 0x40d0d6
mov edx, dword [esp + 0x1c]
push edx
lea ecx, [esp + 0x48]
call fcn.0040b840
mov eax, dword [eax]
mov ecx, dword [esp + 0x30]
push eax
add ecx, 0x8c
call fcn.00404770
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x48]
cmp eax, ecx
je 0x40d0d6
push eax
call fcn.00413ba1
add esp, 4
mov edx, dword [esp + 0x1c]
push edx
call ebp
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40d0eb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esp + 0x18]
push edx
call ebp
xor edi, edi
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x40d102
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d12b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40d141
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x10], 0
call dword [sym.imp.ole32.dll_CoUninitialize]
lea edx, [esp + 0xc8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40d163
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d181
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x2d0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004145af
add esp, 0x2c4
ret