Function at 0x40a0b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4227e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2e8
mov eax, dword [0x42b48c]
push ebx
xor eax, ebp
push esi
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0x2e8], eax
push edi
mov dword [esp + 0x1c], ebx
mov eax, dword [esi + 0x448]
mov edi, 1
cmp eax, edi
mov dword [esp + 0x38], esi
je 0x40a8cd
lea ecx, [esp + 0x60]
call fcn.00410910
lea eax, [esp + 0x1e0]
push eax
push 0x104
mov dword [esp + 0x304], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edx, dword [0x42c534]
mov ecx, 0x42c534
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x1e0]
push eax
lea ecx, [esp + 0x30]
push str._srsdinfo.xml
push ecx
mov byte [esp + 0x308], 1
call fcn.00408960
mov eax, dword [esi + 0x448]
add esp, 0xc
cmp eax, ebx
mov eax, str.http:__rsup10.rising.com.cn_menu_info.xml
je 0x40a16f
mov eax, str.http:__u.suxiazai.com_menu_info.xml
push eax
lea ecx, [esp + 0x14]
call fcn.00409be0
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
push 0
push 0
push ebx
push edx
lea ecx, [esp + 0x70]
mov byte [esp + 0x30c], 2
mov dword [esi + 0x448], 0xffffffff
call fcn.00411730
test eax, eax
je 0x40a1c8
mov eax, dword [esp + 0x10]
push 0
push 0
push ebx
push eax
lea ecx, [esp + 0x70]
mov dword [esp + 0xc8], edi
call fcn.00411730
test eax, eax
jne 0x40a601
mov eax, dword [0x42c534]
mov ecx, 0x42c534
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x450]
test eax, eax
mov byte [esp + 0x2fc], 3
je 0x40a5d4
lea eax, [ebx - 0x10]
push eax
call fcn.00404e70
add eax, 0x10
add esp, 4
mov dword [esp + 0x4c], eax
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x2fc], 5
call fcn.00405700
mov ecx, dword [esi + 0x450]
lea edi, [esp + 0x44]
push edi
sub esp, 0x10
mov word [esp + 0x64], 8
mov ebx, dword [esp + 0x64]
mov edi, esp
mov dword [edi], ebx
mov ebx, dword [esp + 0x68]
mov dword [edi + 4], ebx
mov dword [esp + 0x6c], eax
mov edx, dword [ecx]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x70]
push ecx
mov dword [edi + 0xc], eax
call dword [edx + 0xe8]
test eax, eax
jne 0x40a59f
cmp word [esp + 0x44], 0xffff
jne 0x40a59f
xor edi, edi
mov dword [esp + 0x34], edi
push str.MENU_ITEM
lea ecx, [esp + 0x1c]
mov byte [esp + 0x300], 6
call fcn.00404830
mov ecx, dword [esi + 0x450]
mov eax, dword [eax]
mov edx, dword [ecx]
lea esi, [esp + 0x34]
push esi
push eax
push ecx
mov byte [esp + 0x308], 7
mov dword [esp + 0x28], 1
call dword [edx + 0x90]
test eax, eax
jne 0x40a2c1
cmp dword [esp + 0x34], edi
je 0x40a2c1
mov bl, 1
jmp 0x40a2c3
xor bl, bl
mov eax, dword [esp + 0x18]
push eax
mov dword [esp + 0x300], 6
mov dword [esp + 0x20], edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test bl, bl
je 0x40a589
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x48]
push edx
mov dword [esp + 0x4c], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov eax, dword [esp + 0x48]
xor ecx, ecx
cmp eax, edi
mov dword [esp + 0x18], ecx
jle 0x40a589
lea ebx, [ebx]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0x34]
mov edx, dword [eax]
lea esi, [esp + 0x3c]
push esi
push ecx
push eax
mov byte [esp + 0x308], 9
call dword [edx + 0x1c]
test eax, eax
jne 0x40a42a
mov eax, dword [esp + 0x3c]
cmp eax, edi
je 0x40a42a
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push eax
call dword [ecx + 0x44]
test eax, eax
jne 0x40a42a
cmp dword [esp + 0x28], edi
je 0x40a42a
mov dword [esp + 0x40], edi
mov dword [esp + 0x14], edi
push str.Type
lea ecx, [esp + 0x34]
mov byte [esp + 0x300], 0xb
call fcn.00404830
mov eax, dword [eax]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
lea esi, [esp + 0x40]
push esi
push eax
or ebx, 2
push ecx
mov byte [esp + 0x308], 0xc
mov dword [esp + 0x28], ebx
call dword [edx + 0x1c]
test eax, eax
jne 0x40a3da
mov eax, dword [esp + 0x40]
cmp eax, edi
je 0x40a3da
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
call dword [ecx + 0x68]
test eax, eax
jne 0x40a3da
mov eax, dword [esp + 0x14]
push 0x425870
push eax
call fcn.00416716
add esp, 8
test eax, eax
mov byte [esp + 0xf], 1
je 0x40a3df
mov byte [esp + 0xf], 0
test bl, 2
mov dword [esp + 0x2fc], 0xb
je 0x40a401
mov ecx, dword [esp + 0x30]
and ebx, 0xfffffffd
push ecx
mov dword [esp + 0x20], ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov al, byte [esp + 0xf]
test al, al
jne 0x40a470
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x40]
cmp eax, edi
mov byte [esp + 0x2fc], 9
je 0x40a42a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x28]
cmp eax, edi
mov byte [esp + 0x2fc], 8
je 0x40a440
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x3c]
cmp eax, edi
mov byte [esp + 0x2fc], 6
je 0x40a456
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x48]
inc ecx
cmp ecx, eax
mov dword [esp + 0x18], ecx
jl 0x40a310
jmp 0x40a589
mov dword [esp + 0x18], edi
push str.Switch
lea ecx, [esp + 0x34]
mov byte [esp + 0x300], 0xd
call fcn.00404830
mov eax, dword [eax]
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
lea esi, [esp + 0x18]
push esi
push eax
or ebx, 4
push ecx
mov byte [esp + 0x308], 0xe
mov dword [esp + 0x28], ebx
call dword [edx + 0x1c]
test eax, eax
jne 0x40a4dd
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
call dword [ecx + 0x68]
test eax, eax
jne 0x40a4dd
mov eax, dword [esp + 0x14]
push 0x425860
push eax
call fcn.00416716
add esp, 8
test eax, eax
mov byte [esp + 0xf], 1
je 0x40a4e2
mov byte [esp + 0xf], 0
test bl, 4
mov dword [esp + 0x2fc], 0xd
je 0x40a4fd
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov al, byte [esp + 0xf]
test al, al
je 0x40a526
mov eax, dword [esp + 0x3c]
mov edx, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [edx + 0x68]
test eax, eax
jne 0x40a526
mov edx, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x28]
call fcn.004071c0
mov eax, dword [esp + 0x18]
cmp eax, edi
mov byte [esp + 0x2fc], 0xb
je 0x40a53c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x40]
cmp eax, edi
mov byte [esp + 0x2fc], 9
je 0x40a55d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x28]
cmp eax, edi
mov byte [esp + 0x2fc], 8
je 0x40a573
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x3c]
cmp eax, edi
mov byte [esp + 0x2fc], 6
je 0x40a589
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x34]
cmp eax, edi
mov byte [esp + 0x2fc], 5
je 0x40a59f
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
mov byte [esp + 0x2fc], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a5d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jne 0x40a62f
add eax, 0xfffffff0
mov byte [esp + 0x2fc], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a601
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x2fc], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a627
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
jmp 0x40a89a
lea ecx, [esp + 0x24]
call fcn.00407460
xor eax, eax
mov byte [esp + 0xd8], 0
mov ecx, 0x40
lea edi, [esp + 0xd9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0xc8]
mov dword [esp + 0xd8], str.ProcID
call fcn.00404990
mov ecx, 4
mov edi, eax
mov esi, 0x426808
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x40a69a
push 0x104
lea eax, [esp + 0xdc]
push eax
lea ecx, [esp + 0xcc]
call fcn.00403d90
push 0x424a04
lea ecx, [esp + 0x24]
call fcn.00409be0
mov edi, dword [esp + 0x38]
lea ecx, [esp + 0x30]
push ecx
mov ecx, edi
mov byte [esp + 0x300], 0xf
call fcn.00408b70
mov esi, eax
lea edx, [esp + 0x38]
mov bl, 0x10
push edx
mov ecx, edi
mov byte [esp + 0x300], bl
call fcn.00409c90
mov ecx, dword [edi + 0x44c]
mov edx, dword [esi]
push ecx
push edx
mov edx, dword [eax]
lea ecx, [esp + 0xe0]
push ecx
push edx
lea eax, [esp + 0x30]
push str.ver_sguid_ssguid_sstate_s
push eax
mov byte [esp + 0x314], 0x11
call fcn.00408960
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
add esp, 0x18
mov byte [esp + 0x2fc], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a72b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x2fc], 0xf
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a751
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov ecx, edi
call fcn.00409fd0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x300], 0x12
call fcn.00407720
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x2fc], 0xf
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a79a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
push eax
push esi
lea ecx, [esp + 0x18]
push str._s_t0info_s
push ecx
call fcn.00408960
mov edx, dword [esp + 0x20]
add esp, 0x10
push 0
push 0
push 0
push edx
lea ecx, [esp + 0x70]
call fcn.00411730
cmp eax, reloc.OLEAUT32.dll_SysReAllocString
je 0x40a81b
push str.u.suxiazai.com
push str.rsup10.rising.com.cn
lea ecx, [esp + 0x2c]
call fcn.00407260
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
push eax
push esi
lea ecx, [esp + 0x18]
push str._s_t0info_s
push ecx
call fcn.00408960
mov edx, dword [esp + 0x20]
add esp, 0x10
push 0
push 0
push 0
push edx
lea ecx, [esp + 0x70]
call fcn.00411730
cmp eax, reloc.OLEAUT32.dll_SysReAllocString
jne 0x40a825
mov dword [edi + 0x448], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x2fc], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a84b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esi - 0x10]
mov byte [esp + 0x2fc], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a86d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x2fc], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a893
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x2fc], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a8b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x60]
mov dword [esp + 0x2fc], 0xffffffff
call fcn.00410420
mov ecx, dword [esp + 0x2f4]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x2ec]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415d1a
mov esp, ebp
pop ebp
ret