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

Disassembly:
sub esp, 0x2c4
mov eax, dword [str._u]
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.004047c0
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 0x41d9f0
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.00404cd0
test eax, eax
jne 0x40b3b3
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [esp + 0x14]
push edx
push 0x41d8c8
push 0x17
push edi
push 0x41d9e0
mov dword [esp + 0x24], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, edi
jl 0x40b154
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ole32.dll_OleRun]
mov esi, eax
cmp esi, edi
jl 0x40b146
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x41d8b8
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 0x40b15a
mov dword [esp + 0x10], edi
cmp esi, edi
jne 0x40b37b
lea edx, [esp + 0xc8]
push edx
lea ecx, [esp + 0x30]
call fcn.004047c0
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea ecx, [esp + 0x2c]
call fcn.00409cd0
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 0x40b1b4
push 0x80004003
call fcn.0041c470
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 0x40b352
cmp word [esp + 0x24], 0xffff
jne 0x40b352
mov ecx, dword [esp + 0x10]
xor edi, edi
cmp ecx, edi
mov dword [esp + 0x14], eax
jne 0x40b202
push 0x80004003
call fcn.0041c470
mov eax, dword [esp + 0x14]
cmp eax, edi
mov esi, dword [esp + 0x10]
je 0x40b210
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.00409b10
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 0x40b344
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], edi
call fcn.004099e0
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
call dword [ecx + 0x68]
test eax, eax
jne 0x40b33b
mov eax, dword [esp + 0x18]
push 0x41d9c8
push eax
call fcn.0041c6e2
add esp, 8
cmp eax, 0xffffffff
je 0x40b33b
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], edi
call fcn.004099e0
push str.CONFIG_URL
lea ecx, [esp + 0x20]
mov esi, eax
call fcn.00409b10
mov edi, dword [eax]
mov ebx, dword [esi]
lea ecx, [esp + 0x20]
call fcn.00409c80
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 0x40b32d
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], 0
call fcn.004099e0
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [edx + 0x68]
test eax, eax
jne 0x40b326
mov edx, dword [esp + 0x1c]
push edx
lea ecx, [esp + 0x48]
call fcn.00409ca0
mov eax, dword [eax]
mov ecx, dword [esp + 0x30]
push eax
add ecx, 0x8c
call fcn.00404680
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x48]
cmp eax, ecx
je 0x40b326
push eax
call fcn.00411d71
add esp, 4
mov edx, dword [esp + 0x1c]
push edx
call ebp
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40b33b
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 0x40b352
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 0x40b37b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40b391
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 0x40b3b3
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 0x40b3d1
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.0041277f
add esp, 0x2c4
ret