Function at 0x507e90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
push ebx
push esi
push edi
xor eax, eax
mov ecx, 0x41
mov edi, 0x7998e8
rep stosd dword es:[edi], eax
mov ecx, 0x41
mov edi, 0x7999f0
rep stosd dword es:[edi], eax
mov ecx, 0x41
mov edi, 0x799af8
xor ebx, ebx
rep stosd dword es:[edi], eax
xor esi, esi
lea esp, [esp]
push esi
mov ecx, 0x799c00
call fcn.00507cb0
mov edi, eax
xor eax, eax
inc esi
cmp esi, 5
mov ecx, 0x41
rep stosd dword es:[edi], eax
jl 0x507ed0
push 0x7998e8
push 0x104
call dword [0x5b82d4]
test eax, eax
jne 0x507f17
push 0x5e02d8
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x14
call fcn.00560081
push 0x7998e8
call fcn.00507a80
mov al, byte [ebp + 8]
add esp, 4
cmp al, bl
jne 0x507f83
mov edx, dword [ebp + 0xc]
cmp edx, ebx
je 0x508004
mov eax, edx
lea esi, [eax + 1]
jmp 0x507f40
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x507f40
sub eax, esi
mov dword [esp + 0xc], eax
je 0x508004
xor eax, eax
push edx
mov ecx, 0x41
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push ecx
push str._s_s
push 0x103
push 0x7999f0
call fcn.00560ac3
add esp, 0x14
mov byte [0x799af3], bl
push 0x7999f0
call fcn.00507a80
mov al, byte [ebp + 8]
add esp, 4
cmp al, bl
jne 0x5080d8
push str.Automap
push 0x5c
push 0x7999f0
push str._s_c_s
lea ecx, [esp + 0x20]
push 0x104
push ecx
call fcn.00560ac3
lea edx, [esp + 0x28]
push ebx
push edx
mov byte [esp + 0x133], bl
call fcn.0056119a
add esp, 0x20
test eax, eax
je 0x5080d8
lea eax, [esp + 0x10]
push eax
call fcn.0056123d
add esp, 4
test eax, eax
je 0x5080d8
push 0x5e02d8
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], 0x17
call fcn.00560081
call fcn.00507ad0
test al, al
je 0x50802e
push 0x7998e8
push 0x5bca14
push 0x104
push 0x7999f0
call fcn.00560ac3
add esp, 0x10
jmp 0x507f7d
push 1
push 0x1a
lea edx, [esp + 0x18]
push edx
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x1c]
push ebx
rep stosd dword es:[edi], eax
call dword [0x63d9f4]
test eax, eax
jne 0x508066
push 0x5e02d8
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x16
call fcn.00560081
lea ecx, [esp + 0x10]
push ecx
call fcn.00507a80
push str.Tibia
push 0x5c
lea edx, [esp + 0x1c]
push edx
push str._s_c_s
push 0x104
push 0x7999f0
call fcn.00560ac3
push ebx
push 0x7999f0
mov byte [0x799af3], bl
call fcn.0056119a
add esp, 0x24
test eax, eax
je 0x507f83
push 0x7999f0
call fcn.0056123d
add esp, 4
test eax, eax
je 0x507f83
push 0x5e02d8
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x17
call fcn.00560081
xor eax, eax
lea edx, [esp + 0x10]
mov ecx, 0x25
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x14], 0x94
call dword [0x5b8214]
test eax, eax
je 0x50813f
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x508109
cmp eax, 1
jne 0x50813f
push 0x7998e8
push 0x5bca14
push 0x104
push 0x799af8
call fcn.00560ac3
add esp, 0x10
mov byte [0x799bfb], bl
push 0x799af8
call fcn.00507a80
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
push 0x23
push 0x799af8
push ebx
call dword [0x63d9f4]
test eax, eax
jne 0x50812b
push 0x5e02d8
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x15
call fcn.00560081
int3