Function at 0x52316a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x6a2c70]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0xff
mov byte [ebp - 0x204], 0
push esi
lea eax, [ebp - 0x203]
mov ebx, ecx
push 0
push eax
call fcn.0054f520
push esi
lea eax, [ebp - 0x103]
mov byte [ebp - 0x104], 0
push 0
push eax
call fcn.0054f520
add esp, 0x18
lea eax, [ebp - 0x204]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebx + 4]
call fcn.004da966
xor ecx, ecx
cmp dword [0x5b658c], ecx
je 0x5235d1
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x5231e5
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x5231ff
mov al, byte [0x5796cc]
lea ecx, [ebx + 8]
mov byte [edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.004da966
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x52321f
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x523239
push 5
pop ecx
mov esi, str.ResourceEffectScript
lea eax, [ebp - 0x104]
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [ebx + 0xc]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call fcn.004da966
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x52325f
lea ecx, [ebp - 0x104]
dec ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x523279
mov eax, dword [str.Ini]
mov dword [ecx], eax
mov al, byte [0x589a4c]
mov byte [ecx + 4], al
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebx + 0x10]
call fcn.004da966
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x5232a1
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x5232bb
mov esi, str.Sound
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebx + 0x14]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call fcn.004da966
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x5232dd
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x5232f7
mov esi, str.Resource
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebx + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.004da966
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x523319
lea ecx, [ebp - 0x104]
dec ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x523333
mov eax, dword [str.BGM]
mov dword [ecx], eax
mov al, byte [0x589a68]
mov byte [ecx + 4], al
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebx + 0x1c]
call fcn.004da966
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x52335b
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x523375
mov al, byte [0x5796cc]
lea ecx, [ebx + 0x20]
mov byte [edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.004da966
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x523395
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x5233af
mov al, byte [0x5796cc]
lea ecx, [ebx + 0x24]
mov byte [edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.004da966
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x5233cf
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x5233e9
mov al, byte [0x5796cc]
lea ecx, [ebx + 0x28]
mov byte [edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.004da966
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x523409
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x523423
mov al, byte [0x5796cc]
lea ecx, [ebx + 0x2c]
mov byte [edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.004da966
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x523443
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x52345d
mov al, byte [0x5796cc]
lea ecx, [ebx + 0x30]
mov byte [edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.004da966
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x52347d
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x523497
mov al, byte [0x5796cc]
lea ecx, [ebx + 0x38]
mov byte [edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.004da966
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x5234b7
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x5234d1
mov al, byte [0x5796cc]
lea ecx, [ebx + 0x3c]
mov byte [edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.004da966
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x5234f1
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x52350b
mov esi, str.ImageMinimap
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebx + 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call fcn.004da966
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x52352f
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x523549
mov al, byte [0x5796cc]
lea ecx, [ebx + 0x40]
mov byte [edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.004da966
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x523569
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x523583
mov al, byte [0x5796cc]
lea ecx, [ebx + 0x44]
mov byte [edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.004da966
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x5235a3
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x5235bd
mov al, byte [0x5796cc]
mov byte [edi], al
jmp 0x5239d1
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x5235d1
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x5235eb
mov al, byte [0x5796cc]
lea ecx, [ebx + 8]
mov byte [edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.004da966
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x52360b
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x523625
push 5
pop ecx
mov esi, str.ResourceEffectScript
lea eax, [ebp - 0x104]
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [ebx + 0xc]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call fcn.004da966
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x52364b
lea ecx, [ebp - 0x104]
dec ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x523665
mov eax, dword [str.Ini]
mov dword [ecx], eax
mov al, byte [0x589a4c]
mov byte [ecx + 4], al
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebx + 0x10]
call fcn.004da966
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x52368d
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x5236a7
mov esi, str.Sound
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebx + 0x14]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call fcn.004da966
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x5236c9
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x5236e3
mov esi, str.Resource
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebx + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.004da966
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x523705
lea ecx, [ebp - 0x104]
dec ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x52371f
mov eax, dword [str.BGM]
mov dword [ecx], eax
mov al, byte [0x589a68]
mov byte [ecx + 4], al
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebx + 0x1c]
call fcn.004da966
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x523747
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x523761
mov esi, str.3DDataCharacter
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebx + 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.004da966
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x523785
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x52379f
mov esi, str.3DDataPet
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebx + 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004da966
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x5237c0
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x5237da
mov esi, str.3DDataMonster
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebx + 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004da966
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x5237fc
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x523816
mov esi, str.3DDataNpc
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebx + 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004da966
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x523837
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x523851
mov esi, str.3DDataEffect
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebx + 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call fcn.004da966
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x523875
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x52388f
mov esi, str.3DDataMap
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebx + 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004da966
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x5238b0
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x5238ca
mov esi, str.3DDataCloud
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebx + 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.004da966
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x5238ed
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x523907
mov esi, str.ImageMinimap
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebx + 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call fcn.004da966
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x52392b
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x523945
mov esi, str.3DDataMapObject
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebx + 0x40]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.004da966
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x523969
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x523983
mov esi, str.3DDataTitan
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebx + 0x44]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.004da966
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x5239a6
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x5239c0
mov esi, str.3DDataMap2
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebx + 0x48]
call fcn.004da966
mov ecx, dword [ebp - 4]
and dword [ebx + 0x50], 0
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0054ee82
mov esp, ebp
pop ebp
ret