Function at 0x4e579d60
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x68
push 0xffffffffffffffff
push 0x4e5aa258
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.4e5144a0
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 0x4e579f26
mov eax, dword [ebp + 0x5c]
push eax
lea ecx, [ebp + 4]
call fcn.4e572b90
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 0x4e579f08
mov ecx, dword [ebp + 0x50]
cmp ecx, dword [ebp + 0x5c]
ja 0x4e579f08
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.4e564ee0
add esp, 8
mov eax, dword [ebp + 0x24]
mov dword [ebp + 0x34], eax
cmp dword [ebp + 0x28], 0x10
jb 0x4e579e32
mov ecx, dword [ebp]
mov dword [ebp + 0x58], ecx
mov edx, dword [ebp + 0x14]
mov dword [ebp + 0x58], edx
jmp 0x4e579e38
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 0x4e579e9d
movsx eax, byte [0x4e5b3000]
test eax, eax
jne 0x4e579e5b
mov dword [ebp + 0x54], 0
jmp 0x4e579e8c
mov dword [ebp + 0x60], 0x4e5b3000
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 0x4e579e6b
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 0x4e5b3000
lea ecx, [ebp + 0x14]
call fcn.4e51e260
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.4e5144a0
lea eax, [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x70]
call fcn.4e51e120
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 0x4e579ef0
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x44], eax
mov ecx, dword [ebp + 0x44]
push ecx
call fcn.4e589184
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp + 0x14]
call fcn.4e5144a0
mov eax, dword [ebp + 0x70]
jmp 0x4e579f76
mov byte [ebp - 4], 0
movzx edx, byte [ebp + 0x10]
test edx, edx
je 0x4e579f26
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x40], eax
mov ecx, dword [ebp + 0x40]
push ecx
call fcn.4e589184
add esp, 4
push str.Cannot_get_current_directory
lea ecx, [ebp - 0x24]
call fcn.4e514340
mov byte [ebp - 4], 2
push 0
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x50]
call fcn.4e54f470
push 0x4e5d2f54
lea eax, [ebp - 0x50]
push eax
call fcn.4e58a47b
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x24]
call fcn.4e5144a0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp + 0x14]
call fcn.4e5144a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
add ebp, 0x68
mov esp, ebp
pop ebp
ret