Function at 0x40ef30
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0xa0c]
sub esp, 0xa0c
push 0xffffffffffffffff
push 0x5b4c30
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x62c930]
xor eax, ebp
mov dword [ebp + 0xa08], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [edi + 4]
lea esi, [ebp - 0x14]
mov dword [ebp - 0x24], edi
mov dword [edi + 0x4f4], eax
mov dword [edi + 0x594], eax
call fcn.00423b50
lea ecx, [edi + 0x6d4]
push eax
mov byte [ebp - 4], 1
call fcn.00401a80
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40efbf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x206
lea edx, [ebp + 0x802]
xor ecx, ecx
push ebx
push edx
mov word [ebp + 0x800], cx
call fcn.00587fb0
add esp, 0xc
lea eax, [ebp + 0x800]
push eax
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp + 0x800]
push ecx
lea ecx, [ebp - 0x20]
call fcn.004016c0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x20]
mov eax, dword [edx - 0xc]
cmp eax, ebx
je 0x40f050
lea ecx, [eax - 1]
cmp ecx, ebx
jl 0x40f563
cmp ecx, eax
jg 0x40f563
movzx ecx, word [edx + ecx*2]
cmp cx, 0x5c
je 0x40f050
lea ecx, [eax - 1]
cmp ecx, ebx
jl 0x40f563
cmp ecx, eax
jg 0x40f563
movzx eax, word [edx + ecx*2]
cmp ax, 0x2f
je 0x40f050
push 0x5c
lea ecx, [ebp - 0x20]
call fcn.00408400
lea edx, [ebp - 0x20]
lea esi, [edi + 0x6c0]
push edx
mov ecx, esi
call fcn.00401a80
push str.3dm_game_filesGamelibs
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.00405c70
add esp, 0xc
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.00401a80
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f0a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x20]
call fcn.0041ea70
push str.3dm_game_filesGamepics
lea ecx, [ebp - 0x14]
push esi
push ecx
call fcn.00405c70
add esp, 0xc
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.00401a80
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f0ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x20]
call fcn.0041ea70
lea ecx, [ebp - 0x44]
push ecx
mov dword [edi + 0x7a4], ebx
call fcn.00405eb0
mov byte [ebp - 4], 5
call fcn.005759db
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40f122
push 0x80004005
call fcn.00401b20
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x2c], eax
lea esi, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.0041e9b0
push str.3dmConfig.ini
push eax
lea ecx, [ebp - 0x14]
mov bl, 7
push ecx
mov byte [ebp - 4], bl
call fcn.00405c70
add esp, 0xc
lea esi, [edi + 0x6a8]
push eax
mov ecx, esi
mov byte [ebp - 4], 8
call fcn.00401a80
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f188
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f1ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.00401a80
lea ecx, [ebp - 0x44]
push ecx
call fcn.00420bc0
test eax, eax
je 0x40f6c5
push str.gameid
lea ecx, [ebp - 0x18]
call fcn.004016c0
push str.Base
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 9
call fcn.004016c0
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
mov bl, 0xa
push ecx
lea edi, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.00421a00
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x24]
add ecx, 0x6ac
push eax
call fcn.00401a80
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f231
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f254
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f277
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [ebp + 2]
push edx
mov word [ebp], cx
call fcn.00587fb0
add esp, 0xc
push str.gamepath
lea ecx, [ebp - 0x1c]
call fcn.004016c0
mov bl, 0xc
push str.StartGame
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.004016c0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
lea edi, [ebp - 0x44]
mov byte [ebp - 4], 0xd
call fcn.00421a00
mov eax, dword [eax]
push 0
lea ecx, [ebp]
push ecx
push 0x400
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f2f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f31b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f33e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x24]
lea eax, [ebp]
lea ecx, [ebx + 0x6b0]
lea esi, [eax + 2]
lea ecx, [ecx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40f350
sub eax, esi
sar eax, 1
push eax
lea edx, [ebp]
push edx
call fcn.00401960
push str.para
lea ecx, [ebp - 0x1c]
call fcn.004016c0
push str.StartGame
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xe
call fcn.004016c0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
lea edi, [ebp - 0x44]
mov byte [ebp - 4], 0xf
call fcn.00421a00
lea ecx, [ebx + 0x6b4]
push eax
mov byte [ebp - 4], 0x10
call fcn.00401a80
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f3d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f3f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f418
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.startpage
lea ecx, [ebp - 0x1c]
call fcn.004016c0
push str.Base
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x11
call fcn.004016c0
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x28]
push eax
lea edi, [ebp - 0x44]
mov byte [ebp - 4], 0x12
call fcn.00421a00
mov byte [ebp - 4], 0x14
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f471
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f494
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x28]
cmp dword [ecx - 0xc], 0
je 0x40f6a3
push 0x5c
push ecx
call fcn.005844d3
add esp, 8
test eax, eax
je 0x40f6a0
mov ecx, dword [ebp - 0x28]
sub eax, ecx
sar eax, 1
mov esi, eax
test esi, esi
jle 0x40f6a3
mov eax, dword [ecx - 0xc]
sub eax, esi
dec eax
push eax
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00405ab0
lea edi, [ebx + 0x6cc]
push eax
mov ecx, edi
mov byte [ebp - 4], 0x16
call fcn.00401a80
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f50d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00405b30
lea esi, [ebx + 0x6c8]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x17
call fcn.00401a80
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f54f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 3
jle 0x40f6a0
mov eax, ecx
cmp dword [eax - 0xc], 0
jge 0x40f56d
push 0x80070057
call fcn.00401b20
movzx eax, word [eax]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaW]
test eax, eax
je 0x40f6a0
mov eax, dword [esi]
cmp dword [eax - 0xc], 1
jge 0x40f591
push 0x80070057
call fcn.00401b20
movzx eax, word [eax + 2]
cmp ax, 0x3a
jne 0x40f6a0
mov eax, dword [esi]
cmp dword [eax - 0xc], 2
jge 0x40f5b1
push 0x80070057
call fcn.00401b20
movzx eax, word [eax + 4]
cmp ax, 0x5c
jne 0x40f6a0
call fcn.004232c0
push 0x5c
mov ecx, esi
call fcn.00405a50
test eax, eax
jle 0x40f6a0
mov edx, dword [esi]
mov ecx, dword [edx - 0xc]
sub ecx, eax
dec ecx
push ecx
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.00405ab0
push eax
mov ecx, esi
mov byte [ebp - 4], 0x18
call fcn.00401b00
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x15
call fcn.004177a0
call fcn.004232c0
push 0x60249c
lea ecx, [ebp - 0x24]
push esi
push ecx
call fcn.00405c70
add esp, 0xc
push edi
push eax
lea edx, [ebp - 0x14]
push edx
mov byte [ebp - 4], 0x19
call fcn.00405bb0
add esp, 0xc
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x1a
call fcn.00401a80
lea ecx, [ebp - 0x14]
call fcn.004177a0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x15
call fcn.004177a0
push str.startpage
lea ecx, [ebp - 0x14]
call fcn.004016c0
push str.Base
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x1b
call fcn.004016c0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 0x1c
call fcn.004217d0
lea ecx, [ebp - 0x24]
call fcn.004177a0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x15
call fcn.004177a0
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.004210d0
mov ecx, dword [ebp - 0x28]
lea eax, [ecx - 0x10]
mov byte [ebp - 4], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f6d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40f6d0
lea esi, [ebp - 0x44]
call fcn.004214d0
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx + 0x6c8]
push ecx
sub eax, 0x10
mov dword [ebp - 0x14], esp
mov esi, esp
push eax
call fcn.00401a10
add eax, 0x10
add esp, 4
lea ecx, [ebx + 0x554]
mov dword [esi], eax
call fcn.0040abf0
push 1
lea ecx, [ebx + 0x368]
push ecx
mov eax, str.ie_home
call fcn.00444820
mov esi, eax
mov dword [ebx + 0x548], esi
test esi, esi
je 0x40f76f
cmp byte [esi + 0x6f1], 0
je 0x40f754
cmp byte [esi + 0x6f0], 0
jne 0x40f74d
lea edx, [esi + 0x65c]
push 0x601958
push edx
call fcn.00447e80
add esp, 8
test eax, eax
jne 0x40f74d
mov eax, dword [esi]
mov edx, dword [eax + 0x15c]
mov ecx, esi
call edx
mov byte [esi + 0x6f1], 0
mov ecx, dword [ebx + 0x548]
lea eax, [ebx - 4]
test eax, eax
je 0x40f76f
cmp dword [ecx + 0x7ac], eax
je 0x40f76f
mov dword [ecx + 0x7ac], eax
lea eax, [ebx - 4]
push eax
call fcn.00413d20
mov ecx, dword [ebx + 0x658]
sub ecx, dword [ebx + 0x654]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
sar eax, 2
mov edx, eax
shr edx, 0x1f
add edx, eax
call fcn.00416a00
mov eax, dword [ebx + 4]
push 0
push 0x5dc
push 0x40a
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [ebx + 0x688], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f7db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.00422600
mov edx, dword [ebp - 0x44]
push edx
call fcn.005759d0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f813
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa08]
xor ecx, ebp
call fcn.005832f8
add ebp, 0xa0c
mov esp, ebp
pop ebp
ret