Function at 0x10004e60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10027596
mov eax, dword fs:[0]
push eax
sub esp, 0x1e8
mov eax, dword [0x10036054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x105
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.100108f0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp eax, 3
jbe 0x100052d4
add eax, 0xfffffffd
cmp eax, 0x105
jae 0x100052ed
push str.lua_
mov byte [ebp + eax - 0x118], 0
lea eax, [ebp - 0x118]
push 0x105
push eax
call fcn.1001549a
lea ecx, [ebp - 0x118]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10004ef4
lea eax, [ebp - 0x118]
sub ecx, edx
push eax
push 0x105
push 0x102b7dd0
mov dword [0x102b7ef4], ecx
call fcn.10014c2d
add esp, 0xc
push str.zdn_logic
push 0x105
push 0x102b7dd0
call fcn.1001549a
mov eax, dword [0x102b7ef4]
add esp, 0xc
add eax, 9
mov dword [0x102c8514], eax
lea eax, [ebp - 0x118]
push eax
push 0x105
push 0x102b7ef8
call fcn.10014c2d
add esp, 0xc
push str.form_zdn
push 0x105
push 0x102b7ef8
call fcn.1001549a
mov eax, dword [0x102b7ef4]
add esp, 0xc
add eax, 8
mov dword [0x102b7ed8], eax
lea eax, [ebp - 0x118]
push eax
push 0x105
push 0x102d8a18
call fcn.10014c2d
add esp, 0xc
push str.zdn_default
push 0x105
push 0x102d8a18
call fcn.1001549a
mov eax, dword [0x102b7ef4]
add esp, 0xc
add eax, 0xb
mov dword [ebp - 0x130], 0
mov dword [0x10037dcc], eax
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0xf
mov byte [ebp - 0x130], 0
push 0xb8
lea eax, [ebp - 0x1e8]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.100108f0
push ecx
lea ecx, [ebp - 0x1e8]
call fcn.10006850
nop word [eax + eax]
mov eax, dword [ebp - 0x1e8]
mov eax, dword [eax + 4]
mov eax, dword [ebp + eax - 0x1b8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1f0], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x1f4]
mov byte [ebp - 4], 2
push eax
call fcn.100078f0
add esp, 4
mov ecx, dword [eax]
push 0xa
mov edx, dword [ecx + 0x20]
mov ecx, eax
call edx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1f0]
mov byte [ebp - 0x1ec], al
test ecx, ecx
je 0x10005073
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x10005073
mov ecx, dword [eax]
push 1
mov edx, dword [ecx]
mov ecx, eax
call edx
push dword [ebp - 0x1ec]
lea edx, [ebp - 0x130]
lea ecx, [ebp - 0x1e8]
call fcn.1000a5a0
add esp, 4
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x100051f0
mov ecx, dword [ebp - 0x11c]
lea eax, [ebp - 0x130]
mov edx, dword [ebp - 0x130]
cmp ecx, 0x10
cmovae eax, edx
cmp byte [eax], 0x23
je 0x10005010
cmp ecx, 0x10
lea eax, [ebp - 0x130]
cmovae eax, edx
cmp byte [eax], 0x3b
je 0x10005010
lea eax, [ebp - 0x118]
push eax
imul eax, dword [0x10037dc8], 0x105
push 0x105
add eax, 0x102b8000
push eax
call fcn.10014c2d
add esp, 0xc
lea eax, [ebp - 0x130]
cmp dword [ebp - 0x11c], 0x10
cmovae eax, dword [ebp - 0x130]
push eax
imul eax, dword [0x10037dc8], 0x105
push 0x105
add eax, 0x102b8000
push eax
call fcn.1001549a
imul eax, dword [0x10037dc8], 0x105
add esp, 0xc
push str..lua
add eax, 0x102b8000
push 0x105
push eax
call fcn.1001549a
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
imul eax, dword [0x10037dc8], 0x105
push 0x105
add eax, 0x102c8518
push eax
call fcn.10014c2d
imul eax, dword [0x10037dc8], 0x105
add esp, 0xc
push str.zdn_default_
add eax, 0x102c8518
push 0x105
push eax
call fcn.1001549a
add esp, 0xc
lea eax, [ebp - 0x130]
cmp dword [ebp - 0x11c], 0x10
cmovae eax, dword [ebp - 0x130]
push eax
imul eax, dword [0x10037dc8], 0x105
push 0x105
add eax, 0x102c8518
push eax
call fcn.1001549a
imul eax, dword [0x10037dc8], 0x105
add esp, 0xc
push str..lua
add eax, 0x102c8518
push 0x105
push eax
call fcn.1001549a
add esp, 0xc
inc dword [0x10037dc8]
jmp 0x10005010
lea ecx, [ebp - 0x1d8]
call fcn.10007510
test eax, eax
jne 0x10005228
mov eax, dword [ebp - 0x1e8]
lea ecx, [ebp - 0x1e8]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.10001e50
mov eax, dword [ebp - 0x1e8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1e8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x1ec], eax
lea ecx, [ebp - 0x1d8]
call fcn.100064e0
mov eax, dword [ebp - 0x1e8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1e8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x1ec], eax
lea eax, [ebp - 0x178]
mov byte [ebp - 4], 3
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.1000e4b5
mov ecx, dword [ebp - 0x11c]
add esp, 4
cmp ecx, 0x10
jb 0x100052d4
mov edx, dword [ebp - 0x130]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100052ca
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100052f2
push ecx
push edx
call fcn.1000f0df
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000ee9f
mov esp, ebp
pop ebp
ret
call fcn.1000efd4
call fcn.10015de5
int3