Function at 0x40de70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x718
mov eax, dword [0x4f92a0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov edx, dword [0x4fa44c]
push ebx
push esi
mov dword [ebp - 0x6f8], eax
mov eax, dword [edx + 0xc]
push edi
mov ecx, 0x4fa44c
call eax
mov edx, dword [0x4fa44c]
add eax, 0x10
mov dword [ebp - 0x6d8], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4fa44c
call eax
mov edx, dword [0x4fa44c]
add eax, 0x10
mov dword [ebp - 0x6e0], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4fa44c
call eax
mov edx, dword [0x4fa44c]
add eax, 0x10
mov dword [ebp - 0x6e4], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4fa44c
call eax
mov edx, dword [0x4fa44c]
lea edi, [eax + 0x10]
mov eax, dword [edx + 0xc]
mov ecx, 0x4fa44c
mov dword [ebp - 0x6f0], edi
call eax
add eax, 0x10
mov dword [ebp - 0x6dc], eax
call fcn.00406940
mov ebx, eax
mov eax, str._gameid
lea esi, [ebp - 0x6d0]
call fcn.00403260
lea ecx, [ebp - 0x6dc]
push ecx
mov eax, esi
call fcn.00404650
mov eax, dword [ebp - 0x6d0]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40df53
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x6dc]
cmp dword [esi - 0xc], 0
jne 0x40dfa0
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40df7b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e65e
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
jmp 0x40e65e
push esi
push 0x4d47d4
lea edi, [ebp - 0x6f0]
call fcn.00403d60
mov edi, dword [ebp - 0x6f0]
lea ecx, [ebp - 0x6d0]
push edi
push ecx
call fcn.00415de0
mov ebx, dword [ebp - 0x6d0]
add esp, 0x10
cmp dword [ebx - 0xc], 0
jne 0x40e013
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40dfef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e00b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
jmp 0x40e645
push 0
lea ecx, [ebp - 0x714]
call fcn.0041de60
lea ecx, [ebp - 0x6cc]
call fcn.00424a40
add ebx, 0xfffffff0
push ecx
mov eax, ebx
mov esi, esp
mov dword [ebp - 0x6f4], ebx
call fcn.00403c30
add eax, 0x10
mov dword [esi], eax
call fcn.00415980
add esp, 4
mov esi, eax
mov dword [ebp - 0x62c], 0xf
mov dword [ebp - 0x630], 0
mov byte [ebp - 0x640], 0
lea edi, [eax + 1]
jmp 0x40e070
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e070
sub eax, edi
push eax
push esi
lea ecx, [ebp - 0x640]
call fcn.00402b40
push 1
lea ecx, [ebp - 0x714]
push ecx
lea edx, [ebp - 0x640]
push edx
lea ecx, [ebp - 0x6cc]
call fcn.00424b00
cmp dword [ebp - 0x62c], 0x10
mov byte [ebp - 0x6d1], al
jb 0x40e0bf
mov eax, dword [ebp - 0x640]
push eax
call fcn.0042ec40
add esp, 4
cmp byte [ebp - 0x6d1], 0
je 0x40e1f2
push str.code
lea ecx, [ebp - 0x714]
call fcn.0041f3d0
mov ecx, eax
call fcn.0041e9a0
cmp eax, 0xc8
je 0x40e122
lea edi, [ebp - 0x6cc]
call fcn.0040e6e0
lea ecx, [ebp - 0x714]
call fcn.0041e370
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e61a
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
jmp 0x40e61a
lea ecx, [ebp - 0x640]
push ecx
push str.game_name_cn
push str.data
lea ecx, [ebp - 0x714]
call fcn.0041f3d0
mov ecx, eax
call fcn.0041f3d0
mov ecx, eax
call fcn.0041e700
sub esp, 0x1c
mov ecx, esp
push 0xffffffffffffffff
push 0
lea edx, [ebp - 0x640]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push edx
mov byte [ecx], 0
call fcn.004027a0
call fcn.00415840
add esp, 0x1c
mov edx, eax
lea edi, [ebp - 0x6d8]
call fcn.00403300
push str.icon
push str.data
lea ecx, [ebp - 0x714]
call fcn.0041f3d0
mov ecx, eax
call fcn.0041f3d0
mov ecx, eax
call fcn.0041e5e0
mov ebx, eax
lea eax, [ebp - 0x6e0]
call fcn.00403340
push str.game_name
push str.data
lea ecx, [ebp - 0x714]
call fcn.0041f3d0
mov ecx, eax
call fcn.0041f3d0
mov ecx, eax
call fcn.0041e5e0
mov ebx, eax
lea eax, [ebp - 0x6e4]
call fcn.00403340
lea ecx, [ebp - 0x640]
call fcn.00402530
push esi
call fcn.0042ec40
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x41a]
push ecx
mov word [ebp - 0x41c], ax
call fcn.00438230
mov eax, dword [0x4fd894]
add esp, 0x10
test eax, eax
jne 0x40e240
push 0x24d0
call fcn.0042ec9c
add esp, 4
test eax, eax
je 0x40e239
mov esi, eax
call fcn.00411220
jmp 0x40e23b
xor eax, eax
mov dword [0x4fd894], eax
add eax, 0x410
lea edx, [ebp - 0x41c]
sub edx, eax
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40e250
lea edi, [ebp - 0x41c]
add edi, 0xfffffffe
jmp 0x40e270
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40e270
mov edx, dword [0x4d39dc]
mov eax, dword [ebp - 0x6dc]
mov dword [edi], edx
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e290
lea edi, [ebp - 0x41c]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40e2a6
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x41c]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
jmp 0x40e2d0
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x40e2d0
mov ecx, dword [str..ico]
mov edx, dword [0x4d484c]
mov dword [eax], ecx
mov cx, word [0x4d4850]
mov dword [eax + 4], edx
mov word [eax + 8], cx
mov eax, dword [0x4fd8a0]
test eax, eax
jne 0x40e31e
push 4
call fcn.0042ec9c
add esp, 4
test eax, eax
je 0x40e317
mov dword [eax], vtable.CStatistic.0
jmp 0x40e319
xor eax, eax
mov dword [0x4fd8a0], eax
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push 0
push 0
lea ecx, [ebp - 0x41c]
push ecx
mov ecx, dword [ebp - 0x6e0]
push ecx
push eax
call edx
mov eax, dword [0x4fa44c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4fa44c
call edx
lea ebx, [eax + 0x10]
lea eax, [ebp - 0x41c]
lea esi, [ebp - 0x6fc]
mov dword [ebp - 0x6e8], ebx
call fcn.00403260
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x212]
push ecx
mov word [ebp - 0x214], ax
call fcn.00438230
mov eax, dword [ebp - 0x6d8]
add esp, 0xc
cmp dword [eax - 0xc], 0
jne 0x40e3be
mov eax, dword [ebp - 0x6e4]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e393
lea edi, [ebp - 0x214]
sub eax, edx
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40e3b0
jmp 0x40e3e2
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e3c0
lea edi, [ebp - 0x214]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40e3d6
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x214]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
jmp 0x40e400
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x40e400
mov edx, dword [0x4d4854]
mov ecx, dword [0x4d4858]
mov dword [eax], edx
mov dword [eax + 4], ecx
lea eax, [ebp - 0x214]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x40e426
mov edx, dword [str..lnk]
mov ecx, dword [0x4d4860]
mov dword [eax], edx
mov dx, word [0x4d4864]
mov dword [eax + 4], ecx
lea ecx, [ebp - 0x214]
mov word [eax + 8], dx
call fcn.0040dd20
lea eax, [ebp - 0x214]
lea esi, [ebp - 0x6ec]
call fcn.00403260
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x622]
push ecx
mov word [ebp - 0x624], ax
call fcn.00438230
add esp, 0xc
lea edx, [ebp - 0x6d0]
push edx
push 0
push 0
mov dword [ebp - 0x6d0], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov esi, dword [ebp - 0x6fc]
test eax, eax
jne 0x40e58b
mov ecx, dword [ebp - 0x6d0]
lea eax, [ebp - 0x624]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov edx, dword [ebp - 0x6d0]
push edx
mov edi, eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test edi, edi
je 0x40e58b
cmp dword [ebx - 0xc], 0
jne 0x40e517
mov edx, str._main
lea edi, [ebp - 0x6e8]
call fcn.00403300
mov eax, edi
push eax
mov edx, str.__gameid
call fcn.00403bf0
mov eax, dword [ebp - 0x6dc]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ebx, edi
call fcn.00403ca0
mov ebx, dword [ebp - 0x6e8]
mov edi, dword [ebp - 0x6ec]
cmp dword [edi - 4], 1
jle 0x40e539
mov edx, dword [edi - 0xc]
push edx
lea eax, [ebp - 0x6ec]
push eax
call fcn.004035d0
mov edi, dword [ebp - 0x6ec]
mov ecx, dword [ebp - 0x6f8]
push edi
add ecx, 0xc30
push ecx
mov edx, ebx
push esi
mov ebx, 0x4d3b50
lea ecx, [ebp - 0x624]
call fcn.0040ce00
mov eax, dword [edi - 8]
push eax
push edi
call fcn.0042f1b6
add esp, 8
test eax, eax
js 0x40e581
cmp eax, dword [edi - 8]
jg 0x40e581
mov ebx, dword [ebp - 0x6e8]
xor edx, edx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], dx
jmp 0x40e591
push 0x80070057
call fcn.00403020
mov edi, dword [ebp - 0x6ec]
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e5ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e5c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e5e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea edi, [ebp - 0x6cc]
call fcn.0040e6e0
lea ecx, [ebp - 0x714]
call fcn.0041e370
mov eax, dword [ebp - 0x6f4]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e61a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x6dc]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e63c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x6f0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e65e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x6e4]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e680
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x6e0]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e6a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x6d8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e6c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e257
mov esp, ebp
pop ebp
ret 4