Function at 0x4e578980
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x68
push 0xffffffffffffffff
push 0x4e5a6e58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov dword [ebp + 0x4c], 0
mov dword [ebp + 0x24], 0
mov dword [ebp + 0x28], 0
push 0
push 0
lea ecx, [ebp + 0x14]
call fcn.4e514040
mov dword [ebp - 4], 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp + 0x5c], eax
cmp dword [ebp + 0x5c], 0
jbe 0x4e578b46
mov eax, dword [ebp + 0x5c]
push eax
lea ecx, [ebp + 4]
call fcn.4e5717b0
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 0x3c], ecx
mov edx, dword [ebp + 0x3c]
push edx
mov eax, dword [ebp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp + 0x50], eax
cmp dword [ebp + 0x50], 0
jbe 0x4e578b28
mov ecx, dword [ebp + 0x50]
cmp ecx, dword [ebp + 0x5c]
ja 0x4e578b28
mov edx, dword [ebp + 0xc]
mov dword [ebp + 0x38], edx
mov eax, dword [ebp + 0x38]
mov dword [ebp + 0x48], eax
lea ecx, [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x48]
push edx
call fcn.4e563af0
add esp, 8
mov eax, dword [ebp + 0x24]
mov dword [ebp + 0x34], eax
cmp dword [ebp + 0x28], 0x10
jb 0x4e578a52
mov ecx, dword [ebp]
mov dword [ebp + 0x58], ecx
mov edx, dword [ebp + 0x14]
mov dword [ebp + 0x58], edx
jmp 0x4e578a58
lea eax, [ebp + 0x14]
mov dword [ebp + 0x58], eax
mov ecx, dword [ebp + 0x58]
add ecx, dword [ebp + 0x34]
movsx edx, byte [ecx - 1]
cmp edx, 0x5c
je 0x4e578abd
movsx eax, byte [0x4e5affb8]
test eax, eax
jne 0x4e578a7b
mov dword [ebp + 0x54], 0
jmp 0x4e578aac
mov dword [ebp + 0x60], 0x4e5affb8
mov ecx, dword [ebp + 0x60]
add ecx, 1
mov dword [ebp + 0x2c], ecx
mov edx, dword [ebp + 0x60]
mov al, byte [edx]
mov byte [ebp + 0x67], al
add dword [ebp + 0x60], 1
cmp byte [ebp + 0x67], 0
jne 0x4e578a8b
mov ecx, dword [ebp + 0x60]
sub ecx, dword [ebp + 0x2c]
mov dword [ebp + 0x30], ecx
mov edx, dword [ebp + 0x30]
mov dword [ebp + 0x54], edx
mov eax, dword [ebp + 0x54]
push eax
push 0x4e5affb8
lea ecx, [ebp + 0x14]
call fcn.4e51dbc0
mov ecx, dword [ebp + 0x70]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp + 0x70]
mov dword [edx + 0x14], 0
push 0
push 0
mov ecx, dword [ebp + 0x70]
call fcn.4e514040
lea eax, [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x70]
call fcn.4e51da80
mov ecx, dword [ebp + 0x4c]
or ecx, 1
mov dword [ebp + 0x4c], ecx
mov byte [ebp - 4], 0
movzx edx, byte [ebp + 0x10]
test edx, edx
je 0x4e578b10
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x44], eax
mov ecx, dword [ebp + 0x44]
push ecx
call fcn.4e585fe1
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp + 0x14]
call fcn.4e514040
mov eax, dword [ebp + 0x70]
jmp 0x4e578b96
mov byte [ebp - 4], 0
movzx edx, byte [ebp + 0x10]
test edx, edx
je 0x4e578b46
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x40], eax
mov ecx, dword [ebp + 0x40]
push ecx
call fcn.4e585fe1
add esp, 4
push str.Cannot_get_current_directory
lea ecx, [ebp - 0x24]
call fcn.4e513ee0
mov byte [ebp - 4], 2
push 0
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x50]
call fcn.4e54e1b0
push 0x4e5cf96c
lea eax, [ebp - 0x50]
push eax
call fcn.4e58707b
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x24]
call fcn.4e514040
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp + 0x14]
call fcn.4e514040
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
add ebp, 0x68
mov esp, ebp
pop ebp
ret