Function at 0x52dd17
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x67ccf0]
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 sub.MSVCR120.dll_memset
push esi
lea eax, [ebp - 0x103]
mov byte [ebp - 0x104], 0
push 0
push eax
call sub.MSVCR120.dll_memset
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.004e4ca0
xor ecx, ecx
cmp dword [0x590a54], ecx
je 0x52e17e
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x52dd92
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x52ddac
mov al, byte [0x564710]
lea ecx, [ebx + 8]
mov byte [edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.004e4ca0
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x52ddcc
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x52dde6
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.004e4ca0
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x52de0c
lea ecx, [ebp - 0x104]
dec ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x52de26
mov eax, dword [str.Ini]
mov dword [ecx], eax
mov al, byte [0x5744f8]
mov byte [ecx + 4], al
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebx + 0x10]
call fcn.004e4ca0
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x52de4e
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x52de68
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.004e4ca0
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x52de8a
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x52dea4
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.004e4ca0
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x52dec6
lea ecx, [ebp - 0x104]
dec ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x52dee0
mov eax, dword [str.BGM]
mov dword [ecx], eax
mov al, byte [0x574514]
mov byte [ecx + 4], al
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebx + 0x1c]
call fcn.004e4ca0
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x52df08
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x52df22
mov al, byte [0x564710]
lea ecx, [ebx + 0x20]
mov byte [edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.004e4ca0
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x52df42
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x52df5c
mov al, byte [0x564710]
lea ecx, [ebx + 0x24]
mov byte [edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.004e4ca0
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x52df7c
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x52df96
mov al, byte [0x564710]
lea ecx, [ebx + 0x28]
mov byte [edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.004e4ca0
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x52dfb6
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x52dfd0
mov al, byte [0x564710]
lea ecx, [ebx + 0x2c]
mov byte [edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.004e4ca0
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x52dff0
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x52e00a
mov al, byte [0x564710]
lea ecx, [ebx + 0x30]
mov byte [edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.004e4ca0
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x52e02a
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x52e044
mov al, byte [0x564710]
lea ecx, [ebx + 0x38]
mov byte [edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.004e4ca0
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x52e064
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x52e07e
mov al, byte [0x564710]
lea ecx, [ebx + 0x3c]
mov byte [edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.004e4ca0
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x52e09e
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x52e0b8
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.004e4ca0
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x52e0dc
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x52e0f6
mov al, byte [0x564710]
lea ecx, [ebx + 0x40]
mov byte [edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.004e4ca0
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x52e116
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x52e130
mov al, byte [0x564710]
lea ecx, [ebx + 0x44]
mov byte [edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.004e4ca0
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x52e150
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x52e16a
mov al, byte [0x564710]
mov byte [edi], al
jmp 0x52e57e
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x52e17e
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x52e198
mov al, byte [0x564710]
lea ecx, [ebx + 8]
mov byte [edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.004e4ca0
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x52e1b8
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x52e1d2
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.004e4ca0
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x52e1f8
lea ecx, [ebp - 0x104]
dec ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x52e212
mov eax, dword [str.Ini]
mov dword [ecx], eax
mov al, byte [0x5744f8]
mov byte [ecx + 4], al
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebx + 0x10]
call fcn.004e4ca0
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x52e23a
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x52e254
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.004e4ca0
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x52e276
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x52e290
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.004e4ca0
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x52e2b2
lea ecx, [ebp - 0x104]
dec ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x52e2cc
mov eax, dword [str.BGM]
mov dword [ecx], eax
mov al, byte [0x574514]
mov byte [ecx + 4], al
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebx + 0x1c]
call fcn.004e4ca0
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x52e2f4
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x52e30e
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.004e4ca0
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x52e332
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x52e34c
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.004e4ca0
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x52e36d
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x52e387
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.004e4ca0
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x52e3a9
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x52e3c3
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.004e4ca0
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x52e3e4
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x52e3fe
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.004e4ca0
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x52e422
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x52e43c
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.004e4ca0
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x52e45d
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x52e477
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.004e4ca0
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x52e49a
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x52e4b4
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.004e4ca0
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x52e4d8
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x52e4f2
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.004e4ca0
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x52e516
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x52e530
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.004e4ca0
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x52e553
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x52e56d
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.004e4ca0
mov ecx, dword [ebp - 4]
and dword [ebx + 0x50], 0
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.005500ac
mov esp, ebp
pop ebp
ret