Function at 0x40df30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x718
mov eax, dword [0x4fb2a0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov edx, dword [0x4fc44c]
push ebx
push esi
mov dword [ebp - 0x6f8], eax
mov eax, dword [edx + 0xc]
push edi
mov ecx, 0x4fc44c
call eax
mov edx, dword [0x4fc44c]
add eax, 0x10
mov dword [ebp - 0x6d8], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4fc44c
call eax
mov edx, dword [0x4fc44c]
add eax, 0x10
mov dword [ebp - 0x6e0], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4fc44c
call eax
mov edx, dword [0x4fc44c]
add eax, 0x10
mov dword [ebp - 0x6e4], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4fc44c
call eax
mov edx, dword [0x4fc44c]
lea edi, [eax + 0x10]
mov eax, dword [edx + 0xc]
mov ecx, 0x4fc44c
mov dword [ebp - 0x6f0], edi
call eax
add eax, 0x10
mov dword [ebp - 0x6dc], eax
call fcn.00406990
mov ebx, eax
mov eax, str._gameid
lea esi, [ebp - 0x6d0]
call fcn.00403290
lea ecx, [ebp - 0x6dc]
push ecx
mov eax, esi
call fcn.004046b0
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 0x40e013
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 0x40e060
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e03b
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 0x40e71e
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
jmp 0x40e71e
push esi
push 0x4d6a60
lea edi, [ebp - 0x6f0]
call fcn.00403db0
mov edi, dword [ebp - 0x6f0]
lea ecx, [ebp - 0x6d0]
push edi
push ecx
call fcn.00415ea0
mov ebx, dword [ebp - 0x6d0]
add esp, 0x10
cmp dword [ebx - 0xc], 0
jne 0x40e0d3
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e0af
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 0x40e0cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
jmp 0x40e705
push 0
lea ecx, [ebp - 0x714]
call fcn.0041de40
lea ecx, [ebp - 0x6cc]
call fcn.004249a0
add ebx, 0xfffffff0
push ecx
mov eax, ebx
mov esi, esp
mov dword [ebp - 0x6f4], ebx
call fcn.00403c80
add eax, 0x10
mov dword [esi], eax
call fcn.00415a60
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 0x40e130
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e130
sub eax, edi
push eax
push esi
lea ecx, [ebp - 0x640]
call fcn.00402b70
push 1
lea ecx, [ebp - 0x714]
push ecx
lea edx, [ebp - 0x640]
push edx
lea ecx, [ebp - 0x6cc]
call fcn.00424a60
cmp dword [ebp - 0x62c], 0x10
mov byte [ebp - 0x6d1], al
jb 0x40e17f
mov eax, dword [ebp - 0x640]
push eax
call fcn.0042ec00
add esp, 4
cmp byte [ebp - 0x6d1], 0
je 0x40e2b2
push str.code
lea ecx, [ebp - 0x714]
call fcn.0041f3b0
mov ecx, eax
call fcn.0041e980
cmp eax, 0xc8
je 0x40e1e2
lea edi, [ebp - 0x6cc]
call fcn.0040e7a0
lea ecx, [ebp - 0x714]
call fcn.0041e350
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e6da
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
jmp 0x40e6da
lea ecx, [ebp - 0x640]
push ecx
push str.game_name_cn
push str.data
lea ecx, [ebp - 0x714]
call fcn.0041f3b0
mov ecx, eax
call fcn.0041f3b0
mov ecx, eax
call fcn.0041e6e0
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.004027c0
call fcn.00415920
add esp, 0x1c
mov edx, eax
lea edi, [ebp - 0x6d8]
call fcn.00403330
push str.icon
push str.data
lea ecx, [ebp - 0x714]
call fcn.0041f3b0
mov ecx, eax
call fcn.0041f3b0
mov ecx, eax
call fcn.0041e5c0
mov ebx, eax
lea eax, [ebp - 0x6e0]
call fcn.00403370
push str.game_name
push str.data
lea ecx, [ebp - 0x714]
call fcn.0041f3b0
mov ecx, eax
call fcn.0041f3b0
mov ecx, eax
call fcn.0041e5c0
mov ebx, eax
lea eax, [ebp - 0x6e4]
call fcn.00403370
lea ecx, [ebp - 0x640]
call fcn.00402540
push esi
call fcn.0042ec00
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x41a]
push ecx
mov word [ebp - 0x41c], ax
call fcn.00438200
mov eax, dword [0x50012c]
add esp, 0x10
test eax, eax
jne 0x40e300
push 0x24d4
call fcn.0042ec5c
add esp, 4
test eax, eax
je 0x40e2f9
mov esi, eax
call fcn.004112e0
jmp 0x40e2fb
xor eax, eax
mov dword [0x50012c], 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 0x40e310
lea edi, [ebp - 0x41c]
add edi, 0xfffffffe
jmp 0x40e330
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40e330
mov edx, dword [0x4d5c5c]
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 0x40e350
lea edi, [ebp - 0x41c]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40e366
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 0x40e390
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x40e390
mov ecx, dword [str..ico]
mov edx, dword [0x4d6ad8]
mov dword [eax], ecx
mov cx, word [0x4d6adc]
mov dword [eax + 4], edx
mov word [eax + 8], cx
mov eax, dword [0x500138]
test eax, eax
jne 0x40e3de
push 4
call fcn.0042ec5c
add esp, 4
test eax, eax
je 0x40e3d7
mov dword [eax], vtable.CStatistic.0
jmp 0x40e3d9
xor eax, eax
mov dword [0x500138], 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 [0x4fc44c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4fc44c
call edx
lea ebx, [eax + 0x10]
lea eax, [ebp - 0x41c]
lea esi, [ebp - 0x6fc]
mov dword [ebp - 0x6e8], ebx
call fcn.00403290
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x212]
push ecx
mov word [ebp - 0x214], ax
call fcn.00438200
mov eax, dword [ebp - 0x6d8]
add esp, 0xc
cmp dword [eax - 0xc], 0
jne 0x40e47e
mov eax, dword [ebp - 0x6e4]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e453
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 0x40e470
jmp 0x40e4a2
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e480
lea edi, [ebp - 0x214]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40e496
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 0x40e4c0
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x40e4c0
mov edx, dword [0x4d6ae0]
mov ecx, dword [0x4d6ae4]
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 0x40e4e6
mov edx, dword [str..lnk]
mov ecx, dword [0x4d6aec]
mov dword [eax], edx
mov dx, word [0x4d6af0]
mov dword [eax + 4], ecx
lea ecx, [ebp - 0x214]
mov word [eax + 8], dx
call fcn.0040dde0
lea eax, [ebp - 0x214]
lea esi, [ebp - 0x6ec]
call fcn.00403290
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x622]
push ecx
mov word [ebp - 0x624], ax
call fcn.00438200
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 0x40e64b
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 0x40e64b
cmp dword [ebx - 0xc], 0
jne 0x40e5d7
mov edx, str._main
lea edi, [ebp - 0x6e8]
call fcn.00403330
mov eax, edi
push eax
mov edx, str.__gameid
call fcn.00403c40
mov eax, dword [ebp - 0x6dc]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ebx, edi
call fcn.00403cf0
mov ebx, dword [ebp - 0x6e8]
mov edi, dword [ebp - 0x6ec]
cmp dword [edi - 4], 1
jle 0x40e5f9
mov edx, dword [edi - 0xc]
push edx
lea eax, [ebp - 0x6ec]
push eax
call fcn.00403600
mov edi, dword [ebp - 0x6ec]
mov ecx, dword [ebp - 0x6f8]
push edi
add ecx, 0xc30
push ecx
mov edx, ebx
push esi
mov ebx, 0x4d5dd0
lea ecx, [ebp - 0x624]
call fcn.0040cec0
mov eax, dword [edi - 8]
push eax
push edi
call fcn.0042f176
add esp, 8
test eax, eax
js 0x40e641
cmp eax, dword [edi - 8]
jg 0x40e641
mov ebx, dword [ebp - 0x6e8]
xor edx, edx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], dx
jmp 0x40e651
push 0x80070057
call fcn.00403050
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 0x40e66d
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 0x40e689
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 0x40e6a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea edi, [ebp - 0x6cc]
call fcn.0040e7a0
lea ecx, [ebp - 0x714]
call fcn.0041e350
mov eax, dword [ebp - 0x6f4]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e6da
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 0x40e6fc
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 0x40e71e
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 0x40e740
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 0x40e762
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 0x40e784
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.0042e217
mov esp, ebp
pop ebp
ret 4