Function at 0x46c25d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x66c240]
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.0055ecc0
push esi
lea eax, [ebp - 0x103]
mov byte [ebp - 0x104], 0
push 0
push eax
call fcn.0055ecc0
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.004100e2
xor ecx, ecx
cmp dword [0x5cee00], ecx
je 0x46c5d1
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46c2d8
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46c2f2
mov al, byte [0x58d430]
lea ecx, [ebx + 8]
mov byte [edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.004100e2
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46c312
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46c32c
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.004100e2
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46c352
lea ecx, [ebp - 0x104]
dec ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x46c36c
mov eax, dword [str.Ini]
mov dword [ecx], eax
mov al, byte [0x59846c]
mov byte [ecx + 4], al
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebx + 0x10]
call fcn.004100e2
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46c394
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46c3ae
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.004100e2
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46c3d0
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46c3ea
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.004100e2
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46c40c
lea ecx, [ebp - 0x104]
dec ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x46c426
mov eax, dword [0x598484]
mov dword [ecx], eax
mov al, byte [0x598488]
mov byte [ecx + 4], al
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebx + 0x1c]
call fcn.004100e2
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46c44e
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46c468
mov al, byte [0x58d430]
lea ecx, [ebx + 0x20]
mov byte [edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.004100e2
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46c488
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46c4a2
mov al, byte [0x58d430]
lea ecx, [ebx + 0x24]
mov byte [edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.004100e2
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46c4c2
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46c4dc
mov al, byte [0x58d430]
lea ecx, [ebx + 0x28]
mov byte [edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.004100e2
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46c4fc
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46c516
mov al, byte [0x58d430]
lea ecx, [ebx + 0x2c]
mov byte [edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.004100e2
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46c536
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46c550
mov al, byte [0x58d430]
lea ecx, [ebx + 0x30]
mov byte [edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.004100e2
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46c570
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46c58a
mov al, byte [0x58d430]
lea ecx, [ebx + 0x38]
mov byte [edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.004100e2
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46c5aa
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46c5c4
jmp 0x46c8d2
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46c5d1
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46c5eb
mov al, byte [0x58d430]
lea ecx, [ebx + 8]
mov byte [edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.004100e2
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46c60b
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46c625
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.004100e2
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46c64b
lea ecx, [ebp - 0x104]
dec ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x46c665
mov eax, dword [str.Ini]
mov dword [ecx], eax
mov al, byte [0x59846c]
mov byte [ecx + 4], al
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebx + 0x10]
call fcn.004100e2
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46c68d
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46c6a7
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.004100e2
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46c6c9
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46c6e3
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.004100e2
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46c705
lea ecx, [ebp - 0x104]
dec ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x46c71f
mov eax, dword [0x598484]
mov dword [ecx], eax
mov al, byte [0x598488]
mov byte [ecx + 4], al
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebx + 0x1c]
call fcn.004100e2
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46c747
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46c761
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.004100e2
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46c785
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46c79f
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.004100e2
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46c7c0
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46c7da
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.004100e2
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46c7fc
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46c816
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.004100e2
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46c837
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46c851
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.004100e2
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46c875
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46c88f
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.004100e2
xor ecx, ecx
mov al, byte [ebp + ecx - 0x204]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x46c8b0
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46c8ca
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.004100e2
mov ecx, dword [ebp - 4]
and dword [ebx + 0x50], 0
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0055dcf4
mov esp, ebp
pop ebp
ret