Function at 0x46c700
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x348]
sub esp, 0x348
push 0xffffffffffffffff
push 0x498543
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4b600c]
xor eax, ebp
mov dword [ebp + 0x344], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], 0x114
mov ecx, dword [ebp + 0x350]
call fcn.00401350
movzx eax, byte [0x4b92e1]
test eax, eax
jne 0x46c81b
mov ecx, 1
imul edx, ecx, 0
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 0x115
jae 0x46c76d
jmp 0x46c772
call fcn.0043b002
mov eax, dword [ebp - 0x1c]
mov byte [ebp + eax + 0x22c], 0
lea ecx, [ebp + 0x22c]
push ecx
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x46c7a1
cmp dword [ebp - 0x20], 0x114
jb 0x46c7a8
xor al, al
jmp 0x46c94e
mov edx, 1
imul eax, edx, 0x114
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x115
jae 0x46c7c1
jmp 0x46c7c6
call fcn.0043b002
mov ecx, dword [ebp - 0x24]
mov byte [ebp + ecx + 0x22c], 0
lea edx, [ebp + 0x22c]
push edx
lea eax, [ebp - 0x50]
push eax
call fcn.004688d0
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x40]
push edx
mov ecx, dword [ebp + 0x350]
call fcn.0046a160
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.004012a0
mov al, 1
jmp 0x46c94e
mov eax, 2
imul ecx, eax, 0
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x28], 0x22a
jae 0x46c831
jmp 0x46c836
call fcn.0043b002
xor edx, edx
mov eax, dword [ebp - 0x28]
mov word [ebp + eax], dx
lea ecx, [ebp]
push ecx
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x46c85f
xor al, al
jmp 0x46c94e
cmp dword [ebp - 0x14], 0x114
jae 0x46c8a6
mov edx, 2
imul eax, edx, 0x114
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x22a
jae 0x46c881
jmp 0x46c886
call fcn.0043b002
xor ecx, ecx
mov edx, dword [ebp - 0x2c]
mov word [ebp + edx], cx
lea eax, [ebp]
push eax
mov ecx, dword [ebp + 0x350]
call fcn.0046a080
mov al, 1
jmp 0x46c94e
lea ecx, [ebp - 0x38]
call fcn.0046a020
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x38]
call fcn.00401be0
push eax
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x46c8ed
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.004012a0
mov al, byte [ebp - 0xd]
jmp 0x46c94e
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x38]
call fcn.00402800
lea ecx, [ebp - 0x38]
call fcn.00401300
cmp eax, dword [ebp - 0x18]
jne 0x46c911
mov ecx, dword [ebp - 0x14]
sub ecx, 1
cmp ecx, dword [ebp - 0x18]
je 0x46c929
mov byte [ebp - 0xe], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.004012a0
mov al, byte [ebp - 0xe]
jmp 0x46c94e
lea edx, [ebp - 0x38]
push edx
mov ecx, dword [ebp + 0x350]
call fcn.0046a160
mov byte [ebp - 0xf], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.004012a0
mov al, byte [ebp - 0xf]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp + 0x344]
xor ecx, ebp
call fcn.0043ace1
add ebp, 0x348
mov esp, ebp
pop ebp
ret 4