Function at 0x456694
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
mov eax, 0x5304c9
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
call fcn.004d57f0
xor edx, edx
mov dword [ebp - 0x28], edx
mov word [ebp - 0x14], 8
test ebx, ebx
jne 0x4566cd
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x456918
mov cl, byte [ebx]
test cl, cl
jne 0x4566e4
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x456918
lea ecx, [ebp - 0x12c]
push ecx
push 0x104
call sub.KERNEL32.dll_GetCurrentDirectoryA
lea eax, [ebp - 0x12c]
test eax, eax
je 0x45673e
lea edx, [ebp - 0x12c]
push edx
call fcn.004d2f1c
pop ecx
test eax, eax
je 0x45673e
lea ecx, [ebp - 0x12c]
push ecx
call fcn.004d2f1c
pop ecx
movsx eax, byte [ebp + eax - 0x12d]
cmp eax, 0x5c
je 0x45673e
push 0x5ed2f9
lea edx, [ebp - 0x12c]
push edx
call fcn.004d2e40
add esp, 8
push ebx
lea ecx, [ebp - 0x12c]
push ecx
call fcn.004d2e40
add esp, 8
push 0x2100
lea eax, [ebp - 0x12c]
push eax
call fcn.00405c58
add esp, 8
test eax, eax
je 0x45679c
xor eax, eax
lea edi, [ebp - 0x12c]
or ecx, 0xffffffff
mov esi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov al, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x456918
push 0
push 0x4001
push ebx
lea ecx, [ebp - 0x12c]
push ecx
call fcn.004563e8
add esp, 0x10
test al, al
je 0x456805
push 0x2100
lea eax, [ebp - 0x12c]
push eax
call fcn.00405c58
add esp, 8
test eax, eax
je 0x456805
xor eax, eax
lea edi, [ebp - 0x12c]
or ecx, 0xffffffff
mov esi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov al, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x456918
push 0
push 0x2001
push ebx
lea ecx, [ebp - 0x12c]
push ecx
call fcn.004563e8
add esp, 0x10
test al, al
je 0x45686e
push 0x2100
lea eax, [ebp - 0x12c]
push eax
call fcn.00405c58
add esp, 8
test eax, eax
je 0x45686e
xor eax, eax
lea edi, [ebp - 0x12c]
or ecx, 0xffffffff
mov esi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov al, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x456918
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
lea esi, [ebp - 0x12c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x12c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x2100
push eax
call fcn.00405c58
add esp, 8
test eax, eax
je 0x4568de
xor eax, eax
lea edi, [ebp - 0x12c]
or ecx, 0xffffffff
mov esi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov al, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x456918
mov byte [ebx], 0
mov word [ebp - 0x14], 0
jmp 0x45690c
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
mov esp, ebp
mov edi, dword [ebp - 0x138]
mov esi, dword [ebp - 0x134]
mov ebx, dword [ebp - 0x130]
pop ebp
ret