Function at 0x4af480
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540c69
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push esi
push edi
mov dword [ebp - 0x10], 0
call fcn.00495480
mov ecx, dword [ebp + 8]
xor eax, eax
mov edx, dword [ebp + 0xc]
mov dword [0x5cf448], edx
mov word [0x5cf466], cx
mov dword [ebp - 0x10], eax
test ecx, ecx
jle 0x4af529
mov esi, dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [edx + eax*4]
mov ecx, str._debugger
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4af500
test dl, dl
je 0x4af4fc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4af500
add eax, 2
add ecx, 2
test dl, dl
jne 0x4af4e0
xor eax, eax
jmp 0x4af505
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4af51a
call esi
test eax, eax
jne 0x4af51a
nop
push 1
call edi
call esi
test eax, eax
je 0x4af510
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp + 8]
jl 0x4af4d4
push 0x370
push 0
push 0x589770
call fcn.004e4d50
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea esi, [ebp - 0x128]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
lea ecx, [esi + 1]
mov byte [ebp - 0x28], 0
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4af570
sub esi, ecx
cmp esi, 0xf
ja 0x4af59f
push esi
lea eax, [ebp - 0x128]
mov dword [ebp - 0x18], esi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004e5920
mov byte [ebp + esi - 0x28], 0
mov esi, dword [ebp - 0x18]
jmp 0x4af62f
cmp esi, 0x7fffffff
ja 0x4af783
mov edi, esi
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x4af5bf
mov edi, 0x7fffffff
jmp 0x4af5c9
mov eax, 0x16
cmp edi, eax
cmovb edi, eax
lea ecx, [edi + 1]
cmp ecx, 0x1000
jb 0x4af5fd
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.004e370b
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4af788
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x4af60e
test ecx, ecx
je 0x4af60c
push ecx
call fcn.004e370b
add esp, 4
jmp 0x4af60e
xor eax, eax
push esi
lea ecx, [ebp - 0x128]
mov dword [ebp + 8], eax
push ecx
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
call fcn.004e53a0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov byte [eax + esi], 0
mov ecx, dword [0x5898ac]
add esp, 0xc
cmp ecx, 0x10
jb 0x4af66b
mov eax, dword [0x589898]
inc ecx
cmp ecx, 0x1000
jb 0x4af661
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4af788
mov eax, edx
push ecx
push eax
call fcn.004e373b
add esp, 8
movups xmm0, xmmword [ebp - 0x28]
movups xmmword [0x589898], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [0x5898a8], xmm0
lea eax, [esi + 7]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x10], 3
call fcn.00494040
cmp dword [0x5898ac], 0x10
lea ecx, [ebp - 0x28]
push dword [0x5898a8]
mov eax, 0x589898
cmovae eax, dword [0x589898]
push eax
call fcn.00479450
push 7
push str.Levels
lea ecx, [ebp - 0x28]
call fcn.00479450
mov ecx, dword [0x5898dc]
cmp ecx, 0x10
jb 0x4af715
mov eax, dword [0x5898c8]
inc ecx
cmp ecx, 0x1000
jb 0x4af70b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4af788
mov eax, edx
push ecx
push eax
call fcn.004e373b
add esp, 8
movups xmm0, xmmword [ebp - 0x28]
sub esp, 0x18
mov dword [ebp - 4], 0xffffffff
mov eax, esp
movups xmmword [0x5898c8], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [0x5898d8], xmm0
movups xmm0, xmmword [0x589898]
push str._seditor.log
push 0x5899e0
movups xmmword [eax], xmm0
movq xmm0, qword [0x5898a8]
movq qword [eax + 0x10], xmm0
call fcn.0043fb40
add esp, 0x20
call fcn.00453d50
call fcn.004c3740
call fcn.00490070
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00448390
call fcn.0050f0ca
int3