Function at 0x46d5e0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x60]
sub esp, 0x60
push 0xffffffffffffffff
push 0x47bfcd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov dword [ebp + 0x48], 0
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0
push 0
push 0
lea ecx, [ebp + 8]
call fcn.004054b0
mov dword [ebp - 4], 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp + 0x58], eax
cmp dword [ebp + 0x58], 0
jbe 0x46d7af
mov eax, dword [ebp + 0x58]
mov dword [ebp + 0x3c], eax
xor ecx, ecx
mov eax, dword [ebp + 0x58]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004397c5
add esp, 4
mov dword [ebp + 0x30], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp + 0x40], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0x40]
mov dword [ebp + 4], ecx
mov edx, dword [ebp + 4]
push edx
mov eax, dword [ebp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp + 0x44], eax
cmp dword [ebp + 0x44], 0
jbe 0x46d799
mov ecx, dword [ebp + 0x44]
cmp ecx, dword [ebp + 0x58]
ja 0x46d799
mov edx, dword [ebp + 0x40]
mov dword [ebp + 0x38], edx
lea eax, [ebp + 8]
push eax
mov ecx, dword [ebp + 0x38]
push ecx
call fcn.00462c70
add esp, 8
mov edx, dword [ebp + 0x18]
mov dword [ebp + 0x28], edx
cmp dword [ebp + 0x1c], 0x10
jb 0x46d6cb
mov eax, dword [ebp]
mov dword [ebp + 0x50], eax
mov ecx, dword [ebp + 8]
mov dword [ebp + 0x50], ecx
jmp 0x46d6d1
lea edx, [ebp + 8]
mov dword [ebp + 0x50], edx
mov eax, dword [ebp + 0x50]
add eax, dword [ebp + 0x28]
movsx ecx, byte [eax - 1]
cmp ecx, 0x5c
je 0x46d736
movsx edx, byte [0x48f8ac]
test edx, edx
jne 0x46d6f4
mov dword [ebp + 0x4c], 0
jmp 0x46d725
mov dword [ebp + 0x54], 0x48f8ac
mov eax, dword [ebp + 0x54]
add eax, 1
mov dword [ebp + 0x20], eax
mov ecx, dword [ebp + 0x54]
mov dl, byte [ecx]
mov byte [ebp + 0x5f], dl
add dword [ebp + 0x54], 1
cmp byte [ebp + 0x5f], 0
jne 0x46d704
mov eax, dword [ebp + 0x54]
sub eax, dword [ebp + 0x20]
mov dword [ebp + 0x24], eax
mov ecx, dword [ebp + 0x24]
mov dword [ebp + 0x4c], ecx
mov edx, dword [ebp + 0x4c]
push edx
push 0x48f8ac
lea ecx, [ebp + 8]
call fcn.0040b0e0
mov eax, dword [ebp + 0x68]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp + 0x68]
mov dword [ecx + 0x14], 0
push 0
push 0
mov ecx, dword [ebp + 0x68]
call fcn.004054b0
lea edx, [ebp + 8]
push edx
mov ecx, dword [ebp + 0x68]
call fcn.004051e0
mov eax, dword [ebp + 0x48]
or eax, 1
mov dword [ebp + 0x48], eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 0x40]
mov dword [ebp + 0x2c], ecx
mov edx, dword [ebp + 0x2c]
push edx
call fcn.0043d95c
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp + 8]
call fcn.004054b0
mov eax, dword [ebp + 0x68]
jmp 0x46d7ff
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x40]
mov dword [ebp + 0x34], eax
mov ecx, dword [ebp + 0x34]
push ecx
call fcn.0043d95c
add esp, 4
push str.Cannot_get_current_directory
lea ecx, [ebp - 0x24]
call fcn.00403fb0
mov byte [ebp - 4], 2
push 0
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x50]
call fcn.00432530
push 0x4996b0
lea eax, [ebp - 0x50]
push eax
call fcn.0043e6d5
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x24]
call fcn.004054b0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp + 8]
call fcn.004054b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
add ebp, 0x60
mov esp, ebp
pop ebp
ret