Function at 0x53d150
Capabilities:
Get common file path

Disassembly:
sub esp, 0x204
mov eax, dword [0x6397d4]
xor eax, esp
mov dword [esp + 0x200], eax
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0xff
lea eax, [esp + 0x115]
push ebx
push eax
mov ebp, ecx
mov byte [esp + 0x11c], bl
call sub.MSVCR80.dll_memset
push 0xff
lea ecx, [esp + 0x21]
push ebx
push ecx
mov byte [esp + 0x28], bl
call sub.MSVCR80.dll_memset
add esp, 0x18
lea edx, [esp + 0x110]
push edx
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0x110]
push eax
lea ecx, [ebp + 4]
call fcn.00417f70
xor eax, eax
cmp dword [0x58d034], ebx
je 0x53d6b0
mov edi, edi
mov cl, byte [esp + eax + 0x110]
mov byte [esp + eax + 0x10], cl
add eax, 1
cmp cl, bl
jne 0x53d1d0
lea edi, [esp + 0x10]
add edi, 0xffffffff
lea esp, [esp]
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x53d1f0
mov cl, byte [0x562815]
lea edx, [esp + 0x10]
mov byte [edi], cl
push edx
lea ecx, [ebp + 8]
call fcn.00417f70
xor eax, eax
mov cl, byte [esp + eax + 0x110]
mov byte [esp + eax + 0x10], cl
add eax, 1
cmp cl, bl
jne 0x53d211
lea edi, [esp + 0x10]
add edi, 0xffffffff
lea ebx, [ebx]
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x53d230
mov ecx, 5
mov esi, str.ResourceEffectScript
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [esp + 0x10]
push eax
lea ecx, [ebp + 0xc]
movsb byte es:[edi], byte [esi]
call fcn.00417f70
xor eax, eax
jmp 0x53d260
mov cl, byte [esp + eax + 0x110]
mov byte [esp + eax + 0x10], cl
add eax, 1
cmp cl, bl
jne 0x53d260
lea eax, [esp + 0x10]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x53d280
mov ecx, dword [str.Ini]
mov dl, byte [0x572cb8]
mov dword [eax], ecx
mov byte [eax + 4], dl
lea eax, [esp + 0x10]
push eax
lea ecx, [ebp + 0x10]
call fcn.00417f70
xor eax, eax
lea ebx, [ebx]
mov cl, byte [esp + eax + 0x110]
mov byte [esp + eax + 0x10], cl
add eax, 1
cmp cl, bl
jne 0x53d2b0
lea eax, [esp + 0x10]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x53d2d0
mov ecx, dword [str.Sound]
mov dx, word [0x572cb0]
mov dword [eax], ecx
mov cl, byte [0x572cb2]
mov word [eax + 4], dx
lea edx, [esp + 0x10]
mov byte [eax + 6], cl
push edx
lea ecx, [ebp + 0x14]
call fcn.00417f70
xor eax, eax
jmp 0x53d310
mov cl, byte [esp + eax + 0x110]
mov byte [esp + eax + 0x10], cl
add eax, 1
cmp cl, bl
jne 0x53d310
lea eax, [esp + 0x10]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x53d330
mov ecx, dword [str.Resource]
mov edx, dword [0x572ca4]
mov dword [eax], ecx
mov cx, word [0x572ca8]
mov dword [eax + 4], edx
lea edx, [esp + 0x10]
mov word [eax + 8], cx
push edx
lea ecx, [ebp + 0x18]
call fcn.00417f70
xor eax, eax
jmp 0x53d370
mov cl, byte [esp + eax + 0x110]
mov byte [esp + eax + 0x10], cl
add eax, 1
cmp cl, bl
jne 0x53d370
lea eax, [esp + 0x10]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x53d390
mov ecx, dword [str.BGM]
mov dl, byte [0x572c9c]
mov dword [eax], ecx
mov byte [eax + 4], dl
lea eax, [esp + 0x10]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00417f70
xor eax, eax
lea ebx, [ebx]
mov cl, byte [esp + eax + 0x110]
mov byte [esp + eax + 0x10], cl
add eax, 1
cmp cl, bl
jne 0x53d3c0
lea edi, [esp + 0x10]
add edi, 0xffffffff
lea esp, [esp]
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x53d3e0
mov cl, byte [0x562815]
lea edx, [esp + 0x10]
mov byte [edi], cl
push edx
lea ecx, [ebp + 0x20]
call fcn.00417f70
xor eax, eax
mov cl, byte [esp + eax + 0x110]
mov byte [esp + eax + 0x10], cl
add eax, 1
cmp cl, bl
jne 0x53d401
lea edi, [esp + 0x10]
add edi, 0xffffffff
lea ebx, [ebx]
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x53d420
mov al, byte [0x562815]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [ebp + 0x24]
mov byte [edi], al
call fcn.00417f70
xor eax, eax
mov cl, byte [esp + eax + 0x110]
mov byte [esp + eax + 0x10], cl
add eax, 1
cmp cl, bl
jne 0x53d440
lea edi, [esp + 0x10]
add edi, 0xffffffff
lea esp, [esp]
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x53d460
mov dl, byte [0x562815]
lea eax, [esp + 0x10]
push eax
lea ecx, [ebp + 0x28]
mov byte [edi], dl
call fcn.00417f70
xor eax, eax
mov cl, byte [esp + eax + 0x110]
mov byte [esp + eax + 0x10], cl
add eax, 1
cmp cl, bl
jne 0x53d481
lea edi, [esp + 0x10]
add edi, 0xffffffff
lea ebx, [ebx]
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x53d4a0
mov cl, byte [0x562815]
lea edx, [esp + 0x10]
mov byte [edi], cl
push edx
lea ecx, [ebp + 0x2c]
call fcn.00417f70
xor eax, eax
mov cl, byte [esp + eax + 0x110]
mov byte [esp + eax + 0x10], cl
add eax, 1
cmp cl, bl
jne 0x53d4c1
lea edi, [esp + 0x10]
add edi, 0xffffffff
lea ebx, [ebx]
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x53d4e0
mov al, byte [0x562815]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [ebp + 0x30]
mov byte [edi], al
call fcn.00417f70
xor eax, eax
mov cl, byte [esp + eax + 0x110]
mov byte [esp + eax + 0x10], cl
add eax, 1
cmp cl, bl
jne 0x53d500
lea edi, [esp + 0x10]
add edi, 0xffffffff
lea esp, [esp]
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x53d520
mov dl, byte [0x562815]
lea eax, [esp + 0x10]
push eax
lea ecx, [ebp + 0x38]
mov byte [edi], dl
call fcn.00417f70
xor eax, eax
mov cl, byte [esp + eax + 0x110]
mov byte [esp + eax + 0x10], cl
add eax, 1
cmp cl, bl
jne 0x53d541
lea edi, [esp + 0x10]
add edi, 0xffffffff
lea ebx, [ebx]
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x53d560
mov cl, byte [0x562815]
lea edx, [esp + 0x10]
mov byte [edi], cl
push edx
lea ecx, [ebp + 0x3c]
call fcn.00417f70
xor eax, eax
mov cl, byte [esp + eax + 0x110]
mov byte [esp + eax + 0x10], cl
add eax, 1
cmp cl, bl
jne 0x53d581
lea eax, [esp + 0x10]
add eax, 0xffffffff
lea ebx, [ebx]
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x53d5a0
mov ecx, dword [str.ImageMinimap]
mov edx, dword [0x572c8c]
mov dword [eax], ecx
mov ecx, dword [0x572c90]
mov dword [eax + 4], edx
mov dx, word [0x572c94]
mov dword [eax + 8], ecx
mov cl, byte [0x572c96]
mov word [eax + 0xc], dx
lea edx, [esp + 0x10]
mov byte [eax + 0xe], cl
push edx
lea ecx, [ebp + 0x34]
call fcn.00417f70
xor eax, eax
jmp 0x53d5f0
mov cl, byte [esp + eax + 0x110]
mov byte [esp + eax + 0x10], cl
add eax, 1
cmp cl, bl
jne 0x53d5f0
lea edi, [esp + 0x10]
add edi, 0xffffffff
lea esp, [esp]
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x53d610
mov al, byte [0x562815]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [ebp + 0x40]
mov byte [edi], al
call fcn.00417f70
xor eax, eax
mov cl, byte [esp + eax + 0x110]
mov byte [esp + eax + 0x10], cl
add eax, 1
cmp cl, bl
jne 0x53d630
lea edi, [esp + 0x10]
add edi, 0xffffffff
lea esp, [esp]
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x53d650
mov dl, byte [0x562815]
lea eax, [esp + 0x10]
push eax
lea ecx, [ebp + 0x44]
mov byte [edi], dl
call fcn.00417f70
xor eax, eax
mov cl, byte [esp + eax + 0x110]
mov byte [esp + eax + 0x10], cl
add eax, 1
cmp cl, bl
jne 0x53d671
lea edi, [esp + 0x10]
add edi, 0xffffffff
lea ebx, [ebx]
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x53d690
mov cl, byte [0x562815]
lea edx, [esp + 0x10]
mov byte [edi], cl
push edx
jmp 0x53dcf2
mov cl, byte [esp + eax + 0x110]
mov byte [esp + eax + 0x10], cl
add eax, 1
cmp cl, bl
jne 0x53d6b0
lea edi, [esp + 0x10]
add edi, 0xffffffff
lea esp, [esp]
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x53d6d0
mov al, byte [0x562815]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [ebp + 8]
mov byte [edi], al
call fcn.00417f70
xor eax, eax
mov cl, byte [esp + eax + 0x110]
mov byte [esp + eax + 0x10], cl
add eax, 1
cmp cl, bl
jne 0x53d6f0
lea edi, [esp + 0x10]
add edi, 0xffffffff
lea esp, [esp]
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x53d710
mov ecx, 5
mov esi, str.ResourceEffectScript
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edx, [esp + 0x10]
push edx
lea ecx, [ebp + 0xc]
movsb byte es:[edi], byte [esi]
call fcn.00417f70
xor eax, eax
jmp 0x53d740
mov cl, byte [esp + eax + 0x110]
mov byte [esp + eax + 0x10], cl
add eax, 1
cmp cl, bl
jne 0x53d740
lea eax, [esp + 0x10]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x53d760
mov ecx, dword [str.Ini]
mov dl, byte [0x572cb8]
mov dword [eax], ecx
mov byte [eax + 4], dl
lea eax, [esp + 0x10]
push eax
lea ecx, [ebp + 0x10]
call fcn.00417f70
xor eax, eax
lea ebx, [ebx]
mov cl, byte [esp + eax + 0x110]
mov byte [esp + eax + 0x10], cl
add eax, 1
cmp cl, bl
jne 0x53d790
lea eax, [esp + 0x10]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x53d7b0
mov ecx, dword [str.Sound]
mov dx, word [0x572cb0]
mov dword [eax], ecx
mov cl, byte [0x572cb2]
mov word [eax + 4], dx
lea edx, [esp + 0x10]
mov byte [eax + 6], cl
push edx
lea ecx, [ebp + 0x14]
call fcn.00417f70
xor eax, eax
jmp 0x53d7f0
mov cl, byte [esp + eax + 0x110]
mov byte [esp + eax + 0x10], cl
add eax, 1
cmp cl, bl
jne 0x53d7f0
lea eax, [esp + 0x10]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x53d810
mov ecx, dword [str.Resource]
mov edx, dword [0x572ca4]
mov dword [eax], ecx
mov cx, word [0x572ca8]
mov dword [eax + 4], edx
lea edx, [esp + 0x10]
mov word [eax + 8], cx
push edx
lea ecx, [ebp + 0x18]
call fcn.00417f70
xor eax, eax
jmp 0x53d850
mov cl, byte [esp + eax + 0x110]
mov byte [esp + eax + 0x10], cl
add eax, 1
cmp cl, bl
jne 0x53d850
lea eax, [esp + 0x10]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x53d870
mov ecx, dword [str.BGM]
mov dl, byte [0x572c9c]
mov dword [eax], ecx
mov byte [eax + 4], dl
lea eax, [esp + 0x10]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00417f70
xor eax, eax
lea ebx, [ebx]
mov cl, byte [esp + eax + 0x110]
mov byte [esp + eax + 0x10], cl
add eax, 1
cmp cl, bl
jne 0x53d8a0
lea eax, [esp + 0x10]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x53d8c0
mov ecx, dword [str.3DDataCharacter]
mov edx, dword [0x572c78]
mov dword [eax], ecx
mov ecx, dword [0x572c7c]
mov dword [eax + 4], edx
mov edx, dword [0x572c80]
mov dword [eax + 8], ecx
mov cx, word [0x572c84]
mov dword [eax + 0xc], edx
lea edx, [esp + 0x10]
mov word [eax + 0x10], cx
push edx
lea ecx, [ebp + 0x20]
call fcn.00417f70
xor eax, eax
jmp 0x53d910
mov cl, byte [esp + eax + 0x110]
mov byte [esp + eax + 0x10], cl
add eax, 1
cmp cl, bl
jne 0x53d910
lea eax, [esp + 0x10]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x53d930
mov ecx, dword [str.3DDataPet]
mov edx, dword [0x572c6c]
mov dword [eax], ecx
mov ecx, dword [0x572c70]
mov dword [eax + 4], edx
lea edx, [esp + 0x10]
mov dword [eax + 8], ecx
push edx
lea ecx, [ebp + 0x24]
call fcn.00417f70
xor eax, eax
jmp 0x53d970
mov cl, byte [esp + eax + 0x110]
mov byte [esp + eax + 0x10], cl
add eax, 1
cmp cl, bl
jne 0x53d970
lea eax, [esp + 0x10]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x53d990
mov ecx, dword [str.3DDataMonster]
mov edx, dword [0x572c5c]
mov dword [eax], ecx
mov ecx, dword [0x572c60]
mov dword [eax + 4], edx
mov edx, dword [0x572c64]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [esp + 0x10]
push eax
lea ecx, [ebp + 0x28]
call fcn.00417f70
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x110]
mov byte [esp + eax + 0x10], cl
add eax, 1
cmp cl, bl
jne 0x53d9d0
lea eax, [esp + 0x10]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x53d9f0
mov ecx, dword [str.3DDataNpc]
mov edx, dword [0x572c50]
mov dword [eax], ecx
mov ecx, dword [0x572c54]
mov dword [eax + 4], edx
lea edx, [esp + 0x10]
mov dword [eax + 8], ecx
push edx
lea ecx, [ebp + 0x2c]
call fcn.00417f70
xor eax, eax
jmp 0x53da30
mov cl, byte [esp + eax + 0x110]
mov byte [esp + eax + 0x10], cl
add eax, 1
cmp cl, bl
jne 0x53da30
lea eax, [esp + 0x10]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x53da50
mov ecx, dword [str.3DDataEffect]
mov edx, dword [0x572c40]
mov dword [eax], ecx
mov ecx, dword [0x572c44]
mov dword [eax + 4], edx
mov dx, word [0x572c48]
mov dword [eax + 8], ecx
mov cl, byte [0x572c4a]
mov word [eax + 0xc], dx
lea edx, [esp + 0x10]
mov byte [eax + 0xe], cl
push edx
lea ecx, [ebp + 0x30]
call fcn.00417f70
xor eax, eax
jmp 0x53daa0
mov cl, byte [esp + eax + 0x110]
mov byte [esp + eax + 0x10], cl
add eax, 1
cmp cl, bl
jne 0x53daa0
lea eax, [esp + 0x10]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x53dac0
mov ecx, dword [str.3DDataMap]
mov edx, dword [0x572c34]
mov dword [eax], ecx
mov ecx, dword [0x572c38]
mov dword [eax + 4], edx
lea edx, [esp + 0x10]
mov dword [eax + 8], ecx
push edx
lea ecx, [ebp + 0x38]
call fcn.00417f70
xor eax, eax
jmp 0x53db00
mov cl, byte [esp + eax + 0x110]
mov byte [esp + eax + 0x10], cl
add eax, 1
cmp cl, bl
jne 0x53db00
lea eax, [esp + 0x10]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x53db20
mov ecx, dword [str.3DDataCloud]
mov edx, dword [0x572c24]
mov dword [eax], ecx
mov ecx, dword [0x572c28]
mov dword [eax + 4], edx
mov dx, word [0x572c2c]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
lea eax, [esp + 0x10]
push eax
lea ecx, [ebp + 0x3c]
call fcn.00417f70
xor eax, eax
mov edi, edi
mov cl, byte [esp + eax + 0x110]
mov byte [esp + eax + 0x10], cl
add eax, 1
cmp cl, bl
jne 0x53db60
lea eax, [esp + 0x10]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x53db80
mov ecx, dword [str.ImageMinimap]
mov edx, dword [0x572c8c]
mov dword [eax], ecx
mov ecx, dword [0x572c90]
mov dword [eax + 4], edx
mov dx, word [0x572c94]
mov dword [eax + 8], ecx
mov cl, byte [0x572c96]
mov word [eax + 0xc], dx
lea edx, [esp + 0x10]
mov byte [eax + 0xe], cl
push edx
lea ecx, [ebp + 0x34]
call fcn.00417f70
xor eax, eax
jmp 0x53dbd0
mov cl, byte [esp + eax + 0x110]
mov byte [esp + eax + 0x10], cl
add eax, 1
cmp cl, bl
jne 0x53dbd0
lea eax, [esp + 0x10]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x53dbf0
mov ecx, dword [str.3DDataMapObject]
mov edx, dword [0x572c10]
mov dword [eax], ecx
mov ecx, dword [0x572c14]
mov dword [eax + 4], edx
mov edx, dword [0x572c18]
mov dword [eax + 8], ecx
mov cx, word [0x572c1c]
mov dword [eax + 0xc], edx
lea edx, [esp + 0x10]
mov word [eax + 0x10], cx
push edx
lea ecx, [ebp + 0x40]
call fcn.00417f70
xor eax, eax
jmp 0x53dc40
mov cl, byte [esp + eax + 0x110]
mov byte [esp + eax + 0x10], cl
add eax, 1
cmp cl, bl
jne 0x53dc40
lea eax, [esp + 0x10]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x53dc60
mov ecx, dword [str.3DDataTitan]
mov edx, dword [0x572c00]
mov dword [eax], ecx
mov ecx, dword [0x572c04]
mov dword [eax + 4], edx
mov dx, word [0x572c08]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
lea eax, [esp + 0x10]
push eax
lea ecx, [ebp + 0x44]
call fcn.00417f70
xor eax, eax
mov edi, edi
mov cl, byte [esp + eax + 0x110]
mov byte [esp + eax + 0x10], cl
add eax, 1
cmp cl, bl
jne 0x53dca0
lea eax, [esp + 0x10]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x53dcc0
mov ecx, dword [str.3DDataMap2]
mov edx, dword [0x572bf0]
mov dword [eax], ecx
mov ecx, dword [0x572bf4]
mov dword [eax + 4], edx
mov dl, byte [0x572bf8]
mov dword [eax + 8], ecx
mov byte [eax + 0xc], dl
lea eax, [esp + 0x10]
push eax
lea ecx, [ebp + 0x48]
call fcn.00417f70
mov ecx, dword [esp + 0x210]
pop edi
pop esi
mov dword [ebp + 0x50], ebx
pop ebp
pop ebx
xor ecx, esp
call fcn.0055160d
add esp, 0x204
ret