Function at 0x46f4a2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x66e240]
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.00561d60
push esi
lea eax, [ebp - 0x103]
mov byte [ebp - 0x104], 0
push 0
push eax
call fcn.00561d60
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.00410303
xor ecx, ecx
cmp dword [0x5d0e00], ecx
je 0x46f816
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46f51d
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46f537
mov al, byte [0x58f3f0]
lea ecx, [ebx + 8]
mov byte [edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.00410303
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46f557
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46f571
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.00410303
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46f597
lea ecx, [ebp - 0x104]
dec ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x46f5b1
mov eax, dword [str.Ini]
mov dword [ecx], eax
mov al, byte [0x59a1dc]
mov byte [ecx + 4], al
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebx + 0x10]
call fcn.00410303
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46f5d9
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46f5f3
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.00410303
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46f615
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46f62f
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.00410303
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46f651
lea ecx, [ebp - 0x104]
dec ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x46f66b
mov eax, dword [0x59a1f4]
mov dword [ecx], eax
mov al, byte [0x59a1f8]
mov byte [ecx + 4], al
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebx + 0x1c]
call fcn.00410303
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46f693
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46f6ad
mov al, byte [0x58f3f0]
lea ecx, [ebx + 0x20]
mov byte [edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.00410303
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46f6cd
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46f6e7
mov al, byte [0x58f3f0]
lea ecx, [ebx + 0x24]
mov byte [edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.00410303
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46f707
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46f721
mov al, byte [0x58f3f0]
lea ecx, [ebx + 0x28]
mov byte [edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.00410303
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46f741
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46f75b
mov al, byte [0x58f3f0]
lea ecx, [ebx + 0x2c]
mov byte [edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.00410303
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46f77b
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46f795
mov al, byte [0x58f3f0]
lea ecx, [ebx + 0x30]
mov byte [edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.00410303
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46f7b5
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46f7cf
mov al, byte [0x58f3f0]
lea ecx, [ebx + 0x38]
mov byte [edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.00410303
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46f7ef
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46f809
jmp 0x46fb17
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46f816
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46f830
mov al, byte [0x58f3f0]
lea ecx, [ebx + 8]
mov byte [edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.00410303
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46f850
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46f86a
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.00410303
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46f890
lea ecx, [ebp - 0x104]
dec ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x46f8aa
mov eax, dword [str.Ini]
mov dword [ecx], eax
mov al, byte [0x59a1dc]
mov byte [ecx + 4], al
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebx + 0x10]
call fcn.00410303
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46f8d2
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46f8ec
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.00410303
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46f90e
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46f928
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.00410303
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46f94a
lea ecx, [ebp - 0x104]
dec ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x46f964
mov eax, dword [0x59a1f4]
mov dword [ecx], eax
mov al, byte [0x59a1f8]
mov byte [ecx + 4], al
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebx + 0x1c]
call fcn.00410303
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46f98c
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46f9a6
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.00410303
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46f9ca
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46f9e4
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.00410303
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46fa05
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46fa1f
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.00410303
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46fa41
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46fa5b
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.00410303
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46fa7c
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46fa96
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.00410303
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46faba
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46fad4
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.00410303
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46faf5
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46fb0f
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.00410303
mov ecx, dword [ebp - 4]
and dword [ebx + 0x50], 0
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00560d94
mov esp, ebp
pop ebp
ret