Function at 0x40d870
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x426b06
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2e8
mov eax, dword [0x42f4cc]
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 0x40e0b0
lea ecx, [esp + 0x60]
call fcn.00414250
lea eax, [esp + 0x1e0]
push eax
push 0x104
mov dword [esp + 0x304], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edx, dword [0x430588]
mov ecx, 0x430588
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.0040c120
mov eax, dword [esi + 0x448]
add esp, 0xc
cmp eax, ebx
mov eax, str.http:__rsup10.rising.com.cn_menu_info.xml
je 0x40d92f
mov eax, str.http:__u.suxiazai.com_menu_info.xml
push eax
lea ecx, [esp + 0x14]
call fcn.0040d3a0
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.00415070
test eax, eax
je 0x40d988
mov eax, dword [esp + 0x10]
push 0
push 0
push ebx
push eax
lea ecx, [esp + 0x70]
mov dword [esp + 0xc8], edi
call fcn.00415070
test eax, eax
jne 0x40ddc1
mov eax, dword [0x430588]
mov ecx, 0x430588
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 0x40dd94
lea eax, [ebx - 0x10]
push eax
call fcn.00408610
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.00408e80
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 0x40dd5f
cmp word [esp + 0x44], 0xffff
jne 0x40dd5f
xor edi, edi
mov dword [esp + 0x34], edi
push str.MENU_ITEM
lea ecx, [esp + 0x1c]
mov byte [esp + 0x300], 6
call fcn.00408010
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 0x40da81
cmp dword [esp + 0x34], edi
je 0x40da81
mov bl, 1
jmp 0x40da83
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 0x40dd49
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 0x40dd49
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 0x40dbea
mov eax, dword [esp + 0x3c]
cmp eax, edi
je 0x40dbea
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push eax
call dword [ecx + 0x44]
test eax, eax
jne 0x40dbea
cmp dword [esp + 0x28], edi
je 0x40dbea
mov dword [esp + 0x40], edi
mov dword [esp + 0x14], edi
push str.Type
lea ecx, [esp + 0x34]
mov byte [esp + 0x300], 0xb
call fcn.00408010
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 0x40db9a
mov eax, dword [esp + 0x40]
cmp eax, edi
je 0x40db9a
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
call dword [ecx + 0x68]
test eax, eax
jne 0x40db9a
mov eax, dword [esp + 0x14]
push 0x429bf8
push eax
call fcn.0041a882
add esp, 8
test eax, eax
mov byte [esp + 0xf], 1
je 0x40db9f
mov byte [esp + 0xf], 0
test bl, 2
mov dword [esp + 0x2fc], 0xb
je 0x40dbc1
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 0x40dc30
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 0x40dbea
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x28]
cmp eax, edi
mov byte [esp + 0x2fc], 8
je 0x40dc00
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x3c]
cmp eax, edi
mov byte [esp + 0x2fc], 6
je 0x40dc16
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 0x40dad0
jmp 0x40dd49
mov dword [esp + 0x18], edi
push str.Switch
lea ecx, [esp + 0x34]
mov byte [esp + 0x300], 0xd
call fcn.00408010
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 0x40dc9d
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 0x40dc9d
mov eax, dword [esp + 0x14]
push 0x429be8
push eax
call fcn.0041a882
add esp, 8
test eax, eax
mov byte [esp + 0xf], 1
je 0x40dca2
mov byte [esp + 0xf], 0
test bl, 4
mov dword [esp + 0x2fc], 0xd
je 0x40dcbd
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov al, byte [esp + 0xf]
test al, al
je 0x40dce6
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 0x40dce6
mov edx, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x28]
call fcn.0040a970
mov eax, dword [esp + 0x18]
cmp eax, edi
mov byte [esp + 0x2fc], 0xb
je 0x40dcfc
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 0x40dd1d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x28]
cmp eax, edi
mov byte [esp + 0x2fc], 8
je 0x40dd33
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x3c]
cmp eax, edi
mov byte [esp + 0x2fc], 6
je 0x40dd49
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x34]
cmp eax, edi
mov byte [esp + 0x2fc], 5
je 0x40dd5f
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 0x40dd90
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 0x40ddef
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 0x40ddc1
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 0x40dde7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
jmp 0x40e07d
lea ecx, [esp + 0x24]
call fcn.0040ac10
mov byte [esp + 0xd8], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0xd9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [esp + 0xd4], str.ProcID
mov esi, 1
xor edi, edi
call fcn.00418790
mov ecx, eax
call fcn.00418ef0
test eax, eax
je 0x40de3f
mov esi, 2
mov edi, 1
push edi
push esi
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0xd0]
call fcn.004080f0
mov ecx, 4
mov edi, eax
mov esi, 0x42ace4
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x40de7d
push 0x104
lea eax, [esp + 0xdc]
push eax
lea ecx, [esp + 0xcc]
call fcn.004075e0
push 0x428d90
lea ecx, [esp + 0x24]
call fcn.0040d3a0
mov edi, dword [esp + 0x38]
lea ecx, [esp + 0x30]
push ecx
mov ecx, edi
mov byte [esp + 0x300], 0xf
call fcn.0040c330
mov esi, eax
lea edx, [esp + 0x38]
mov bl, 0x10
push edx
mov ecx, edi
mov byte [esp + 0x300], bl
call fcn.0040d450
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.0040c120
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 0x40df0e
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 0x40df34
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.0040d790
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x300], 0x12
call fcn.0040aed0
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 0x40df7d
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.0040c120
mov edx, dword [esp + 0x20]
add esp, 0x10
push 0
push 0
push 0
push edx
lea ecx, [esp + 0x70]
call fcn.00415070
cmp eax, reloc.OLEAUT32.dll_SysReAllocString
je 0x40dffe
push str.u.suxiazai.com
push str.rsup10.rising.com.cn
lea ecx, [esp + 0x2c]
call fcn.0040aa10
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.0040c120
mov edx, dword [esp + 0x20]
add esp, 0x10
push 0
push 0
push 0
push edx
lea ecx, [esp + 0x70]
call fcn.00415070
cmp eax, reloc.OLEAUT32.dll_SysReAllocString
jne 0x40e008
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 0x40e02e
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 0x40e050
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 0x40e076
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 0x40e09c
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.00413d60
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.004199fa
mov esp, ebp
pop ebp
ret